Change how docker-compose maps volumes

Only a handful of locations are shared with the docker-compose file,
instead of the entire directory, to prevent build files from being
overwritten by root.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-08-19 16:27:31 -07:00
parent cd16b20270
commit 0bdb3e3e81
4 changed files with 7 additions and 7 deletions

View File

@@ -4,9 +4,10 @@ services:
build: .
env_file: docker.env
volumes:
- ".:/app"
# ignore build data
- "/app/_build"
- "/app/deps"
- "./mix.exs:/app/mix.exs"
- "./lib:/app/lib"
- "./config:/app/config"
- "./data:/app/data"
- "./omnibot.exs:/app/omnibot.exs"
working_dir: "/app"
restart: always