mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
Better documentation in docker-compose
Also put the version back to 3, which was a typo.
This commit is contained in:
parent
0ef7cbf4c6
commit
f3399c45df
@ -1,21 +1,29 @@
|
|||||||
version: '2'
|
version: "3.2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
env_file:
|
env_file: docker/stikked-envvars.txt
|
||||||
docker/stikked-envvars.txt
|
|
||||||
|
|
||||||
stikked:
|
stikked:
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
image: stikked
|
image: stikked
|
||||||
env_file:
|
env_file: docker/stikked-envvars.txt
|
||||||
docker/stikked-envvars.txt
|
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
|
|
||||||
|
# You should use persistant storage for this,
|
||||||
|
# as if the volume is deleted, everything is gone!
|
||||||
volumes:
|
volumes:
|
||||||
db_data:
|
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"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user