-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
73 lines (66 loc) · 1.52 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
version: '2'
services:
# client application
webpack.client:
build: ./glonass-client
environment:
- NODE_ENV=development
volumes:
- wwwroot:/app/target
- ./glonass-client/src:/app/src
# nginx as reverse proxy and static server
nginx.proxy:
build: ./glonass-nginx-front-end
depends_on:
- node.cluster
- node.poll
- webpack.client
ports:
- "0.0.0.0:80:80"
volumes:
- wwwroot:/wwwroot:ro
networks:
- proxy
# node server application
node.cluster:
build: ./glonass-node-cluster
depends_on:
- redis.db
ports:
- "3000"
volumes:
- ./glonass-node-cluster/src:/app/src
- ./glonass-node-cluster/test:/app/test
networks:
- back-tier
- proxy
environment:
- NODE_ENV=development
- DEBUG=app-info
# node poll server for geoapi
node.poll:
build: ./glonass-node-geoapi-polling-server
depends_on:
- redis.db
volumes:
- ./glonass-node-geoapi-polling-server/src:/app/src
- ./glonass-node-geoapi-polling-server/spec:/app/spec
environment:
- NODE_ENV=development
- DEBUG=app-info,app-error,app-debug,redis-info,redis-error,redis-debug
networks:
- back-tier
# redis as message queue service for node.polling and node.cluster
redis.db:
image: redis
networks:
- back-tier
volumes:
# shared volume between nginx and webpack
wwwroot:
driver: local
networks:
back-tier:
driver: bridge
proxy:
driver: bridge