-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (64 loc) · 1.39 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
---
mongo:
image: mongo
redis:
image: redis
api:
build: api
links:
- mongo
- redis
- img
environment:
- NODE_ENV=production
- PORT=9002
- TOKEN_SECRET=hard_codaus_on_parasta
- MONGODB_URL=mongodb://mongo:27017/production
- REDIS_HOST=redis
- REDIS_PORT=6379
- IMG_URL=http://img:9003/img
expose:
- "9002"
command: "/usr/bin/node /home/teamboard/teamboard-api/index.js"
restart: "on-failure:10"
io:
build: io
links:
- redis
- api
environment:
- NODE_ENV=production
- PORT=9001
- REDIS_HOST=redis
- REDIS_PORT=6379
- API_URL=http://api:9002/api
expose:
- "9001"
command: "/usr/bin/node /home/teamboard/teamboard-io/index.js"
restart: "on-failure:10"
client:
build: client-react
environment:
- NODE_ENV=production
- API_URL=http://127.0.0.1/api
- IO_URL=http://127.0.0.1
restart: "on-failure:10"
img:
build: img
links:
- mongo
environment:
- NODE_ENV=production
- PORT=9003
- MONGO_URL=mongodb://mongo:27017/production
haproxy:
image: haproxy
links:
- api
- io
- client
- img
volumes:
- "./haproxy-conf/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro"
ports:
- "80:80"