added restart unless stopped to compose file

This commit is contained in:
Thegan Govender
2024-02-23 22:46:08 +02:00
parent 3f2f8723b3
commit 582cff755b
2 changed files with 453 additions and 520 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
version: '3'
version: "3"
services:
jellystat-db:
image: postgres
@@ -14,7 +14,7 @@ services:
POSTGRES_PASSWORD: mypassword
POSTGRES_IP: jellystat-db
POSTGRES_PORT: 5432
JWT_SECRET: 'my-secret-jwt-key'
JWT_SECRET: "my-secret-jwt-key"
TZ: Africa/Johannesburg
volumes:
- jellystat-backup-data:/app/backend/backup-data
@@ -22,14 +22,15 @@ services:
- "3000:3000"
depends_on:
- jellystat-db
restart: unless-stopped
networks:
default:
logging:
driver: "json-file"
options:
max-file: "5" # number of files or file count
max-size: "10m" # file size
driver: "json-file"
options:
max-file: "5" # number of files or file count
max-size: "10m" # file size
volumes:
postgres-data:
jellystat-backup-data:
jellystat-backup-data: