-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (66 loc) · 1.78 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
---
version: '3'
services:
master:
build:
context: .
dockerfile: master.Dockerfile
environment:
HTTP_PORT: 9001
REDIS_MASTER_NAME: mymaster
RPC_PORT: 8080
SENTINELS: distributed-evolution_sentinel_1:26379,distributed-evolution_sentinel_2:26379,distributed-evolution_sentinel_3:26379
START_RANDOM_JOB: "false"
WORKERS: 5
WORKER_THREADS: 5
ports:
- 9001:9001
- 8080
worker:
build:
context: .
dockerfile: worker.Dockerfile
environment:
MASTER_URL: master:8080
REDIS_MASTER_NAME: mymaster
SENTINELS: distributed-evolution_sentinel_1:26379,distributed-evolution_sentinel_2:26379,distributed-evolution_sentinel_3:26379
THREADS: 6
ui:
build: ui
environment:
API_URL: http://localhost:9001/api
CHANNEL_URL: ws://localhost:9001/api/subscribe
NODE_ENV: development
PORT: 3000
ports:
- 3000:3000
restart: unless-stopped
volumes:
- ./ui/:/app
- /app/node_modules/
- /app/.next
redis-master:
image: redis:3
ports:
- 6379
redis-slave:
image: redis:3
command: redis-server --slaveof redis-master 6379
links:
- redis-master
ports:
- 6379
sentinel:
build: sentinel/dev
environment:
- SENTINEL_DOWN_AFTER=5000
- SENTINEL_FAILOVER=5000
links:
- redis-master
- redis-slave
ports:
- 26379
networks:
default:
external:
name: distributed-ga