-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
43 lines (40 loc) · 1 KB
/
docker-compose.yaml
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
version: "3.9"
services:
redis:
image: redis:latest
container_name: dota_redis
hostname: dota_redis
clarity:
image: arch1baald/clarity:${OS_PLATFORM}
# image: arch1baald/clarity:${OS_PLATFORM:-linux}
container_name: dota_clarity
ports:
- "5600:5600"
api:
build: .
container_name: dota_api
env_file: .env
environment:
- REDIS_URL=redis://dota_redis
- CLARITY_HOST=dota_clarity
ports:
- "8000:8000"
volumes:
- ./src:/app/src
- ./scripts:/app/scripts
- ./replays:/app/replays
- ./youtube:/app/youtube
command: ["/bin/bash", "scripts/run_server.sh", "production", "INFO"]
worker:
build: .
container_name: dota_worker
env_file: .env
environment:
- REDIS_URL=redis://dota_redis
- CLARITY_HOST=dota_clarity
volumes:
- ./src:/app/src
- ./scripts:/app/scripts
- ./replays:/app/replays
- ./youtube:/app/youtube
command: ["/bin/bash", "scripts/run_workers.sh"]