Skip to content

Commit

Permalink
Docker: Consistent Volume Path
Browse files Browse the repository at this point in the history
Problem: docker-compose volume path is not the same as the dockerfile volume path
Solution: Set the docker-compose volume path to the dockerfile volume path

You can view the correct path in the Dockerfile:
https://github.com/loklak/loklak_server/blob/7a1f0378dc40ec25eec6083e43558a62408d84e8/Dockerfile#L38
I checked in the container:
```
bash-4.3# ls /loklak_server/
bin              conf             gradlew          settings.gradle
build            data             html             src
build.gradle     gradle           installation     ssi
bash-4.3# ls /
bin            lib            proc           srv            var
dev            loklak_server  root           sys
etc            media          run            tmp
home           mnt            sbin           usr
```
the data directory exists and is filled within `/loklak_server`
  • Loading branch information
niccokunzmann authored Apr 1, 2017
1 parent 0bc9795 commit 8c268e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
- "80:80"
#Map volume-folder
volumes:
- data:/data
- data:/loklak_server/data

#Create named volume
volumes:
Expand Down

0 comments on commit 8c268e9

Please sign in to comment.