2
0

Add restart policy unless-stopped (#51)

This commit is contained in:
kk 2017-08-08 14:15:36 -05:00 committed by Matt Robenolt
parent f7dcf7f7f3
commit d971a8d894

View File

@ -9,6 +9,7 @@
version: '2' version: '2'
services: services:
base: base:
restart: unless-stopped
build: . build: .
environment: environment:
# Run `docker-compose run web config generate-secret-key` # Run `docker-compose run web config generate-secret-key`
@ -22,20 +23,25 @@ services:
- ./data/sentry:/var/lib/sentry/files - ./data/sentry:/var/lib/sentry/files
smtp: smtp:
restart: unless-stopped
image: tianon/exim4 image: tianon/exim4
memcached: memcached:
restart: unless-stopped
image: memcached:1.4 image: memcached:1.4
redis: redis:
restart: unless-stopped
image: redis:3.2-alpine image: redis:3.2-alpine
postgres: postgres:
restart: unless-stopped
image: postgres:9.5 image: postgres:9.5
volumes: volumes:
- ./data/postgres:/var/lib/postgresql/data - ./data/postgres:/var/lib/postgresql/data
web: web:
restart: unless-stopped
extends: base extends: base
links: links:
- redis - redis
@ -46,6 +52,7 @@ services:
- '9000:9000' - '9000:9000'
cron: cron:
restart: unless-stopped
extends: base extends: base
command: run cron command: run cron
links: links:
@ -55,6 +62,7 @@ services:
- smtp - smtp
worker: worker:
restart: unless-stopped
extends: base extends: base
command: run worker command: run worker
links: links: