services should be stoppable (#97)

services should be stoppable
This commit is contained in:
nikosch86 2017-02-24 01:30:41 +04:00 committed by Pan Luo
parent 2a0cf0cb21
commit 1cb127e849
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
db:
build: db
restart: always
restart: unless-stopped
volumes:
- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
@ -19,7 +19,7 @@ app:
build: app
links:
- db:db
restart: always
restart: unless-stopped
volumes:
- ./volumes/app/mattermost/config:/mattermost/config:rw
- ./volumes/app/mattermost/data:/mattermost/data:rw
@ -37,7 +37,7 @@ web:
- "443:443"
links:
- app:app
restart: always
restart: unless-stopped
volumes:
# This directory must have cert files
- ./volumes/web/cert:/cert:ro

View File

@ -4,7 +4,7 @@ services:
db:
build: db
restart: always
restart: unless-stopped
volumes:
- ./volumes/db/var/lib/postgresql/data:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro
@ -22,7 +22,7 @@ services:
app:
build: app
restart: always
restart: unless-stopped
volumes:
- ./volumes/app/mattermost/config:/mattermost/config:rw
- ./volumes/app/mattermost/data:/mattermost/data:rw
@ -38,7 +38,7 @@ services:
ports:
- "80:80"
- "443:443"
restart: always
restart: unless-stopped
volumes:
# This directory must have cert files
- ./volumes/web/cert:/cert:ro