Files
omnibot/docker-compose.yml
Alek Ratzloff 0bdb3e3e81 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>
2020-08-19 16:27:31 -07:00

14 lines
288 B
YAML

version: "3.8"
services:
omnibot:
build: .
env_file: docker.env
volumes:
- "./mix.exs:/app/mix.exs"
- "./lib:/app/lib"
- "./config:/app/config"
- "./data:/app/data"
- "./omnibot.exs:/app/omnibot.exs"
working_dir: "/app"
restart: always