Implemented restart procedures

This commit is contained in:
2023-01-09 15:59:36 +01:00
parent c2df7dbc7e
commit 7db4a5a42f
4 changed files with 21 additions and 9 deletions

View File

@@ -2,7 +2,7 @@ version: "3"
services:
postgres:
restart: unless-stopped
restart: always
env_file: .env
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
@@ -11,14 +11,14 @@ services:
- database:/var/lib/postgresql/data
redis:
restart: unless-stopped
restart: always
env_file: .env
image: redis:7-alpine
volumes:
- redis:/data
celeryworker:
restart: unless-stopped
restart: always
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
- postgres
@@ -31,7 +31,7 @@ services:
- "data:${MEDIA_ROOT}"
celerybeat:
restart: unless-stopped
restart: always
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
- postgres
@@ -40,7 +40,7 @@ services:
command: celery -A funkwhale_api.taskapp beat --pidfile= -l INFO
api:
restart: unless-stopped
restart: always
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
- postgres
@@ -53,7 +53,7 @@ services:
- "5000"
front:
restart: unless-stopped
restart: always
image: funkwhale/front:${FUNKWHALE_VERSION:-latest}
depends_on:
- api

View File

@@ -3,7 +3,7 @@ version: '2'
services:
application:
image: zknt/pixelfed
restart: unless-stopped
restart: always
logging:
driver: journald
env_file:
@@ -18,7 +18,7 @@ services:
- redis
worker:
image: zknt/pixelfed
restart: unless-stopped
restart: always
logging:
driver: journald
env_file:

View File

@@ -6,4 +6,4 @@ services:
context: .
ports:
- 127.0.0.1:{{http_port}}:8080
restart: unless-stopped
restart: always