diff options
author | Rob Thomas <xrobau@gmail.com> | 2018-03-16 05:02:48 +0000 |
---|---|---|
committer | Rob Thomas <xrobau@gmail.com> | 2018-03-16 05:02:48 +0000 |
commit | f3399c45df1c9a25f20f832aeec0e581b431c0c8 (patch) | |
tree | 43a81d09a773489ff9c8449c6d345020014e592e /docker-compose.yml | |
parent | 0ef7cbf4c66dab1c43fd67425955d3705208525d (diff) | |
download | stikked-fit-f3399c45df1c9a25f20f832aeec0e581b431c0c8.tar.gz stikked-fit-f3399c45df1c9a25f20f832aeec0e581b431c0c8.tar.bz2 stikked-fit-f3399c45df1c9a25f20f832aeec0e581b431c0c8.zip |
Better documentation in docker-compose
Also put the version back to 3, which was a typo.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 6c3b27d..f06d1de 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,21 +1,29 @@ -version: '2' +version: "3.2" services: db: image: mysql:latest volumes: - db_data:/var/lib/mysql - env_file: - docker/stikked-envvars.txt + env_file: docker/stikked-envvars.txt stikked: depends_on: - db image: stikked - env_file: - docker/stikked-envvars.txt + 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" + |