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>
14 lines
288 B
YAML
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
|