-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (86 loc) · 1.99 KB
/
docker-compose.yml
File metadata and controls
86 lines (86 loc) · 1.99 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.3"
services:
eos-api:
container_name: eos-api
image: ghcr.io/zibbp/eos:latest
restart: unless-stopped
environment:
- DB_HOST=eos-db
- DB_PORT=5432
- DB_USER=eos
- DB_PASS=SECRET
- DB_NAME=eos
- REDIS_HOST=eos-redis
- REDIS_PORT=6379
- REDIS_PASS=secret123
- REDIS_DB=0
volumes:
- /path/to/YouTube/videos:/videos:ro
depends_on:
- eos-db
ports:
- 4600:4000
eos-worker:
container_name: eos-worker
image: ghcr.io/zibbp/eos:latest
restart: unless-stopped
environment:
- DB_HOST=eos-db
- DB_PORT=5432
- DB_USER=eos
- DB_PASS=SECRET
- DB_NAME=eos
- REDIS_HOST=eos-redis
- REDIS_PORT=6379
- REDIS_PASS=secret123
- REDIS_DB=0
- WORKER_CONCURRENCY=10
- WORKER_QUEUE_SCANNER=10
- WORKER_QUEUE_THUMBNAIL=1
volumes:
- /path/to/YouTube/videos:/videos:ro
command: ["./eos-worker"]
eos-redis:
container_name: eos-redis
image: bitnami/redis:latest
restart: unless-stopped
environment:
- REDIS_PASSWORD=secret123
ports:
- 4604:6379
volumes:
- ./redis-data:/bitnami/redis/data
eos-frontend:
container_name: eos-frontend
image: ghcr.io/zibbp/eos-frontend:latest
restart: unless-stopped
environment:
- API_URL=http://IP:4600
- CDN_URL=http://IP:4602/videos
ports:
- 4601:3000
eos-nginx:
container_name: eos-nginx
image: nginx
restart: unless-stopped
volumes:
- /path/to/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- /path/to/YouTube/videos:/mnt/videos:ro
ports:
- 4602:8843
eos-db:
image: postgres:14
container_name: eos-db
restart: always
environment:
- POSTGRES_USER=eos
- POSTGRES_DB=eos
- POSTGRES_PASSWORD=SECRET
logging:
options:
max-size: 10m
max-file: "3"
ports:
- 4603:5432
volumes:
- ./postgres-data:/var/lib/postgresql/data