-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocker-compose.yml
94 lines (94 loc) · 2.81 KB
/
docker-compose.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: "3.3"
services:
ganymede-api:
container_name: ganymede-api
image: ghcr.io/zibbp/ganymede:latest
restart: unless-stopped
depends_on:
- ganymede-temporal
environment:
- TZ=America/Chicago # Set to your timezone
- DB_HOST=ganymede-db
- DB_PORT=5432
- DB_USER=ganymede
- DB_PASS=PASSWORD
- DB_NAME=ganymede-prd
- DB_SSL=disable
- JWT_SECRET=SECRET
- JWT_REFRESH_SECRET=SECRET
- TWITCH_CLIENT_ID=
- TWITCH_CLIENT_SECRET=
- FRONTEND_HOST=http://IP:PORT
# OPTIONAL
# - OAUTH_PROVIDER_URL=
# - OAUTH_CLIENT_ID=
# - OAUTH_CLIENT_SECRET=
# - OAUTH_REDIRECT_URL=http://IP:PORT/api/v1/auth/oauth/callback # Points to the API service
- TEMPORAL_URL=ganymede-temporal:7233
# WORKER
- MAX_CHAT_DOWNLOAD_EXECUTIONS=5
- MAX_CHAT_RENDER_EXECUTIONS=3
- MAX_VIDEO_DOWNLOAD_EXECUTIONS=5
- MAX_VIDEO_CONVERT_EXECUTIONS=3
volumes:
- /path/to/vod/storage:/vods
- ./logs:/logs
- ./data:/data
# Uncomment below to persist temp files
#- ./tmp:/tmp
ports:
- 4800:4000
ganymede-frontend:
container_name: ganymede-frontend
image: ghcr.io/zibbp/ganymede-frontend:latest
restart: unless-stopped
environment:
- API_URL=http://IP:PORT # Points to the API service
- CDN_URL=http://IP:PORT # Points to the CDN service
- SHOW_SSO_LOGIN_BUTTON=true # show/hide SSO login button on login page
- FORCE_SSO_AUTH=false # force SSO auth for all users (bypasses login page and redirects to SSO)
- REQUIRE_LOGIN=false # require login to view videos
ports:
- 4801:3000
ganymede-temporal:
image: temporalio/auto-setup:1.23
container_name: ganymede-temporal
depends_on:
- ganymede-db
environment:
- DB=postgres12 # this tells temporal to use postgres (not the db name)
- DB_PORT=5432
- POSTGRES_USER=ganymede
- POSTGRES_PWD=PASSWORD
- POSTGRES_SEEDS=ganymede-db # name of the db service
ports:
- 7233:7233
# -- Uncomment below to enable temporal web ui --
# ganymede-temporal-ui:
# image: temporalio/ui:latest
# container_name: ganymede-temporal-ui
# depends_on:
# - ganymede-temporal
# environment:
# - TEMPORAL_ADDRESS=ganymede-temporal:7233
# ports:
# - 8233:8080
ganymede-db:
container_name: ganymede-db
image: postgres:14
volumes:
- ./ganymede-db:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=PASSWORD
- POSTGRES_USER=ganymede
- POSTGRES_DB=ganymede-prd
ports:
- 4803:5432
ganymede-nginx:
container_name: ganymede-nginx
image: nginx
volumes:
- /path/to/nginx.conf:/etc/nginx/nginx.conf:ro
- /pah/to/vod/stoage:/mnt/vods
ports:
- 4802:8080