No way to persist settings in Docker

Open
#451 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, docker-compose

Research direction

Start with the docker-compose configuration in the issue and compare the documented mount at https://apiumbrella.io/install/ with the container paths /etc/api-umbrella and /opt/api-umbrella//etc. Inspect the Docker image to determine which path contains configuration. Done means the documented volume mount persists API backends and users across container instances.

Written by the indexing model from the issue text.

Description

I'm using docker-compose with the config as below.

There does not seem to be a way to persist the configuration of the container. When I use the volume mounting that the documentation gives at https://apiumbrella.io/install/ the mount is empty.

If I run bash on the container I can see that there is no /etc/api-umbrella directory, but there is an /opt/api-umbrella//etc directory.

Is this perhaps a mistake in the documentation? How is it possible to persist configuration like API backends and users between instances of the container?

version: '3'

services:
  umbrella:
    image: nrel/api-umbrella
    restart: always
    container_name: api-umbrella
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./config/:/etc/api-umbrella

networks:
  default:
    external:
      name: client_api

Dominant language
Ruby
Stars
2.2k
Forks
373
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NatLabRockies/api-umbrella

All issues in NatLabRockies/api-umbrella

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.