ci: update realibility of ci and docker-compose

This commit is contained in:
Uruk
2024-05-09 22:28:26 +02:00
parent 6666bef325
commit 7447db5a97
3 changed files with 25 additions and 13 deletions

View File

@@ -1,36 +1,43 @@
version: "3"
version: '3'
services:
jellystat-db:
image: postgres
image: postgres:15.2
container_name: jellystat-db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
volumes:
- postgres-data:/var/lib/postgresql/data
jellystat:
image: jellystat
image: cyfershepard/jellystat:latest
container_name: jellystat
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
POSTGRES_IP: jellystat-db
POSTGRES_PORT: 5432
JWT_SECRET: "my-secret-jwt-key"
TZ: Africa/Johannesburg
TZ: mytimezone # timezone (ex: Europe/Paris)
volumes:
- jellystat-backup-data:/app/backend/backup-data
ports:
- "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
volumes:
postgres-data:
jellystat-backup-data:
logging:
driver: "json-file"
options:
max-file: "5" # number of files or file count
max-size: "10m" # file size