Stikked/docker-compose.yml
Rob Thomas f3399c45df Better documentation in docker-compose
Also put the version back to 3, which was a typo.
2018-03-16 05:02:48 +00:00

30 lines
569 B
YAML

version: "3.2"
services:
db:
image: mysql:latest
volumes:
- db_data:/var/lib/mysql
env_file: docker/stikked-envvars.txt
stikked:
depends_on:
- db
image: stikked
env_file: docker/stikked-envvars.txt
ports:
- 80:80
# You should use persistant storage for this,
# as if the volume is deleted, everything is gone!
volumes:
db_data:
# Example of NFS backed persistant storage:
# db_data:
# driver_opts:
# type: "nfs"
# o: "addr=192.168.1.254,nolock,soft,rw"
# device: ":/nfs/export/pbdatabase"