Add restart policy

This commit is contained in:
Patrick Jentsch 2020-09-16 14:21:41 +02:00
parent 78ac2250e1
commit d3545d93a5

View File

@ -15,6 +15,7 @@ services:
- redis
env_file: .env
image: nopaque/web
restart: unless-stopped
volumes:
- "./logs:/home/nopaque/logs"
- "${NOPAQUE_STORAGE}:${NOPAQUE_STORAGE}"
@ -30,6 +31,7 @@ services:
- web
env_file: .env
image: nopaque/daemon
restart: unless-stopped
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "./logs:/home/nopaqued/logs"
@ -37,9 +39,11 @@ services:
db:
env_file: .env
image: postgres:11
restart: unless-stopped
volumes:
- "/srv/nopaque/db:/var/lib/postgresql/data"
redis:
image: redis:6
restart: unless-stopped
volumes:
- "redis-trash1:/data"