-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (104 loc) · 2.39 KB
/
docker-compose.yml
File metadata and controls
105 lines (104 loc) · 2.39 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
services:
conductor:
image: odyseeteam/transcoder-conductor:latest
platform: linux/amd64
container_name: conductor
command:
- ./transcoder
- conductor
- --debug
volumes:
- ${PWD}/conductor.ex.yml:/app/conductor.yml
ports:
- "8080:8080"
# build:
# context: .
# dockerfile: docker/Dockerfile-tower
depends_on:
- redis
- db
restart: unless-stopped
cworker:
image: odyseeteam/transcoder-cworker:latest
platform: linux/amd64
container_name: cworker
command:
- ./transcoder
- worker
- --blob-server=blobcache-eu.lbry.com
# build:
# context: .
# dockerfile: docker/Dockerfile-worker
depends_on:
- redis
- minio
volumes:
- ${PWD}/worker.ex.yml:/app/worker.yml
restart: unless-stopped
# asynqmon:
# image: hibiken/asynqmon:latest
# container_name: asynqmon
# environment:
# - REDIS_URL=redis://:odyredis@redis:6379/1
# ports:
# - '9090:8080'
redis:
image: redis:7.0
container_name: redis
ports:
- '6379:6379'
volumes:
- redis-data:/data
command: >
--requirepass odyredis --appendonly yes
labels:
com.centurylinklabs.watchtower.enable: false
restart: unless-stopped
db:
image: postgres:14
container_name: db
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: odyseeteam
volumes:
- db-data:/var/lib/postgresql/data
command:
- -clogging_collector=on
- -clog_statement=all
- -clog_destination=stderr
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "38861:38861"
- "41949:41949"
volumes:
- minio-data:/data
environment:
MINIO_ROOT_USER: ody
MINIO_ROOT_PASSWORD: odyseetes3
command: server --address 0.0.0.0:9000 /data
minio-prepare:
image: minio/mc
volumes:
- minio-data:/data
entrypoint: >
/bin/sh -c "
sleep 3;
/usr/bin/mc alias set myminio http://minio:9000 ody odyseetes3;
/usr/bin/mc mb --ignore-existing myminio/transcoded;
/usr/bin/mc anonymous set public myminio/transcoded;
exit 0;
"
depends_on: ["minio"]
volumes:
db-data:
minio-data:
redis-data: