Skip to content
Permalink
Browse files

Updated production.yml to restart containers

Containers would not restart on failure or reboot as expected.  Added `restart: unless-stopped` to `production.yml`.
  • Loading branch information...
covertgeek committed Sep 16, 2019
1 parent 7815991 commit 9218c20559ff1b08c581c586c715382de74007f7
Showing with 5 additions and 1 deletion.
  1. +5 −1 production.yml
@@ -12,6 +12,7 @@ services:
context: .
dockerfile: ./compose/production/django/Dockerfile
image: ghostwriter_production_django
restart: unless-stopped
depends_on:
- postgres
- redis
@@ -28,6 +29,7 @@ services:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: ghostwriter_production_postgres
restart: unless-stopped
volumes:
- production_postgres_data:/var/lib/postgresql/data
- production_postgres_data_backups:/backups
@@ -50,10 +52,12 @@ services:

redis:
image: redis:5-alpine

restart: unless-stopped

queue:
<<: *django
image: ghostwriter_production_queue
restart: unless-stopped
depends_on:
- redis
- postgres

0 comments on commit 9218c20

Please sign in to comment.
You can’t perform that action at this time.