-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.25 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
version: '3'
services:
mongo:
image: mongo:3.6
volumes:
- mongo:/data
ports:
- 28017:27017
restart: always
networks:
- crawlerd
etcd:
image: bitnami/etcd:3
volumes:
- etcd:/etcd_data
ports:
- 2479:2379
environment:
# TODO: auth
ALLOW_NONE_AUTHENTICATION: "yes"
restart: always
networks:
- crawlerd
api:
build:
context: .
dockerfile: Dockerfile
depends_on:
- mongo
ports:
- 9080:8080
entrypoint: ./api -mongo-host mongo -scheduler-addr scheduler:9888
networks:
- crawlerd
scheduler:
build:
context: .
dockerfile: Dockerfile
depends_on:
- mongo
- etcd
entrypoint: ./scheduler -etcd-host etcd -mongo-host mongo
networks:
- crawlerd
worker:
build:
context: .
dockerfile: Dockerfile
depends_on:
- mongo
- etcd
entrypoint: ./worker -etcd-host etcd -mongo-host mongo
networks:
- crawlerd
worker2:
build:
context: .
dockerfile: Dockerfile
depends_on:
- mongo
- etcd
entrypoint: ./worker -etcd-host etcd -mongo-host mongo
networks:
- crawlerd
volumes:
mongo:
etcd:
networks:
crawlerd: