Add restarting commands to all example docker compose files

This commit is contained in:
kolaente 2020-05-23 19:34:44 +02:00
parent f0b1de5ec6
commit 292c815000
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -190,6 +190,7 @@ services:
MYSQL_DATABASE: vikunja MYSQL_DATABASE: vikunja
volumes: volumes:
- ./db:/var/lib/mysql - ./db:/var/lib/mysql
restart: unless-stopped
api: api:
image: vikunja/api image: vikunja/api
environment: environment:
@ -202,8 +203,10 @@ services:
- ./files:/app/vikunja/files - ./files:/app/vikunja/files
depends_on: depends_on:
- db - db
restart: unless-stopped
frontend: frontend:
image: vikunja/frontend image: vikunja/frontend
restart: unless-stopped
proxy: proxy:
image: nginx image: nginx
ports: ports:
@ -213,4 +216,5 @@ services:
depends_on: depends_on:
- api - api
- frontend - frontend
restart: unless-stopped
{{< /highlight >}} {{< /highlight >}}