diff --git a/docker-compose.yml b/docker-compose.yml index e686d99..55b239d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + max-size: "10m" # file size + +volumes: + postgres-data: + jellystat-backup-data: \ No newline at end of file