Add the use of volumes to the example docker compose configuration

This commit is contained in:
Gardner
2023-12-24 21:23:44 +13:00
parent f003cdb67e
commit bf75fd9ee7

View File

@@ -5,6 +5,8 @@ services:
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
volumes:
- postgres-data:/var/lib/postgresql/data
jellystat:
image: jellystat
environment:
@@ -13,7 +15,9 @@ services:
POSTGRES_IP: jellystat-db
POSTGRES_PORT: 5432
JWT_SECRET: 'my-secret-jwt-key'
TZ: Africa/Johannesburg
TZ: Africa/Johannesburg
volumes:
- jellystat-backup-data:/app/backend/backup-data
ports:
- "3000:3000"
depends_on:
@@ -24,4 +28,8 @@ logging:
driver: "json-file"
options:
max-file: "5" # number of files or file count
max-size: "10m" # file size
max-size: "10m" # file size
volumes:
postgres-data:
jellystat-backup-data: