-
-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: '3'
services:
jellystat-db:
image: postgres:18.1
shm_size: '1gb'
container_name: jellystat-db
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test:
- CMD-SHELL
- pg_isready --dbname=postgres --username=postgres
interval: 10s
timeout: 5s
retries: 5
jellystat:
image: cyfershepard/jellystat:latest
container_name: jellystat
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
POSTGRES_IP: jellystat-db
POSTGRES_PORT: 5432
JWT_SECRET: "my-secret-jwt-key"
TZ: mytimezone # timezone (ex: Europe/Paris)
volumes:
- jellystat-backup-data:/app/backend/backup-data
ports:
- "3000:3000"
depends_on:
jellystat-db:
condition: service_healthy
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:3000/auth/isConfigured || exit 1
interval: 60s
timeout: 30s
retries: 5
start_period: 30s
networks:
default:
volumes:
postgres-data:
jellystat-backup-data: