add restart policy to docker-compose.yml

This commit is contained in:
Lexi / Zoe 2019-10-24 11:44:01 +02:00
parent 4caa216548
commit 34906a0718
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ version: "3"
services: services:
django: django:
restart: always
build: ../../ build: ../../
expose: expose:
- 8000 - 8000
@ -13,6 +14,7 @@ services:
- production.secrets.env - production.secrets.env
nginx: nginx:
restart: always
build: ../nginx build: ../nginx
ports: ports:
- 8042:80 - 8042:80