-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 1.04 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
version: '2'
services:
api:
build: api/
restart: always
ports:
- "8080:8080"
- "9080:9080"
links:
- db
environment:
- MONGO_URL=db
- MONGO_PORT=27017
volumes:
- "./.docker/logs/api:/var/log/api"
- "./.docker/config/api:/opt/api/config"
crawler:
build: crawler/
restart: always
ports:
- "8081:8081"
- "9081:9081"
links:
- db
environment:
- MONGO_URL=db
- MONGO_PORT=27017
volumes:
- "./.docker/logs/crawler:/var/log/crawler"
- "./.docker/config/crawler:/opt/crawler/config"
web:
build: web/
restart: always
ports:
- "8082:8082"
- "9082:9082"
links:
- api
environment:
- API_URL=http://api:8080/
volumes:
- "./.docker/logs/web:/var/log/web"
db:
image: mongo:3.4
restart: always
volumes:
- "./.docker/data/db:/data/db"
# watchtower:
# image: centurylink/watchtower
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# restart: always