-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
176 lines (163 loc) · 3.55 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
version: '3'
services:
postgresql_server:
container_name: poc_postgresql_server
image: postgres:10.5
restart: always
env_file:
- ./config/env/.common.env
volumes:
- poc_volume_postgresql:/var/lib/postgresql/data
ports:
- 7071:5432
networks:
- poc_network
postgresql_adminer:
container_name: poc_postgresql_adminer
image: adminer
restart: always
ports:
- 9091:8080
networks:
- poc_network
depends_on:
- postgresql_server
rabbitmq_server:
container_name: poc_rabbitmq_server
restart: always
build:
context: ./services/ds-rabbitmq
env_file:
- ./config/env/.common.env
ports:
- 7072:5672
- 9092:15672
networks:
- poc_network
redis_server:
container_name: poc_redis_server
image: redis:4.0.11
entrypoint: redis-server --appendonly yes
restart: always
volumes:
- poc_volume_redis:/data
ports:
- 7073:6379
networks:
- poc_network
redis_commander:
container_name: poc_redis_commander
image: rediscommander/redis-commander:latest
restart: always
env_file:
- ./config/env/.docker.env
ports:
- 9093:8081
networks:
- poc_network
depends_on:
- redis_server
sandbox:
container_name: poc_sandbox
image: node:8.11.4-alpine
restart: always
command: /bin/sh -c "npm install && tail -f /dev/null"
working_dir: /sandbox
volumes:
- ./sandbox:/sandbox
env_file:
- ./config/env/.common.env
- ./config/env/.docker.env
networks:
- poc_network
depends_on:
- postgresql_server
- rabbitmq_server
- redis_server
api:
container_name: poc_api
restart: always
build:
context: ./services/be-api
env_file:
- ./config/env/.common.env
- ./config/env/.docker.env
volumes:
- ./libraries:/usr/src/api/src/lib
ports:
- 7070:7070
networks:
- poc_network
depends_on:
- postgresql_server
- rabbitmq_server
- redis_server
socket:
container_name: poc_socket
restart: always
build:
context: ./services/be-socket
env_file:
- ./config/env/.common.env
- ./config/env/.docker.env
volumes:
- ./libraries:/usr/src/socket/src/lib
ports:
- 7080:7080
networks:
- poc_network
depends_on:
- postgresql_server
- rabbitmq_server
- redis_server
worker:
container_name: poc_worker
restart: always
build:
context: ./services/be-worker
env_file:
- ./config/env/.common.env
- ./config/env/.docker.env
volumes:
- ./libraries:/usr/src/worker/src/lib
networks:
- poc_network
depends_on:
- postgresql_server
- rabbitmq_server
- redis_server
panel:
container_name: poc_panel
restart: always
build:
context: ./services/fe-panel
env_file:
- ./config/env/.common.env
- ./config/env/.docker.env
volumes:
- ./libraries:/usr/src/panel/src/lib
ports:
- 9090:9090
networks:
- poc_network
exmathservice:
container_name: poc_exmathservice
restart: always
build:
context: ./services/ex-math-service
env_file:
- ./config/env/.common.env
- ./config/env/.docker.env
volumes:
- ./libraries:/usr/src/ex-math-service/src/lib
ports:
- 7090:7090
networks:
- poc_network
volumes:
poc_volume_postgresql:
poc_volume_rabbitmq:
poc_volume_redis:
networks:
poc_network:
driver: bridge