Skip to content

How to map config and sql which is located inside a volume? #11601

Answered by chkrause
chkrause asked this question in Docker
Discussion options

You must be logged in to vote

I did it as proposed:
I configured the NAS directly in my host system via fstab configuration to be able to use the following config:

docker run \
    -it \
    --name=evcc \
    --net macvlan0 \
    --ip 192.168.2.241 \
    -p 7070:7070 \
    -p 8887:8887 \
    -p 7090:7090/udp \
    -p 9522:9522/udp \
    -v /NAS/docker/evcc/evcc.yaml:/etc/evcc.yaml \
    -v /NAS/docker/evcc/.evcc:/root/.evcc \
    -d evcc/evcc:latest

Changing the config requires a restart of the docker container, but this works like a charm.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@chkrause
Comment options

@coderph0x
Comment options

@GrimmiMeloni
Comment options

GrimmiMeloni Jan 10, 2024
Collaborator Sponsor

@chkrause
Comment options

Answer selected by chkrause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Docker
Labels
None yet
3 participants