-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
86 lines (78 loc) · 1.61 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
version: "3.4"
services:
db:
image: postgres
restart: always
volumes:
- ./management-service/db/management-db-initialize.sh:/docker-entrypoint-initdb.d/management-db-initialize.sh
- ./db-initialize.sh:/docker-entrypoint-initdb.d/db-initialize.sh
- pgdata:/var/lib/postgresql/data
env_file:
- ./.docker-envs/db.env
ports:
- "5433:5432"
adminer:
image: adminer
restart: always
ports:
- 8080:8080
gateway:
image: gateway
build:
context: .
dockerfile: gateway-service/Dockerfile
ports:
- "8085:80"
env_file:
- ./.docker-envs/gateway.env
rabbit:
image: rabbitmq:3-management
restart: always
volumes:
- /var/lib/rabbitmq
ports:
- "15672:15672"
expose:
- "5672"
env_file:
- ./.docker-envs/rabbitmq.env
accessibility:
image: accessibility
build:
context: .
dockerfile: accessibility-service/Dockerfile
ports:
- "80:80"
env_file:
- ./.docker-envs/accessibility.env
depends_on:
- db
- rabbit
management:
image: mangement
build:
context: ./management-service
volumes:
- ./management-service:/usr/src/app
- /usr/src/app/node_modules
ports:
- 82:80
env_file:
- ./.docker-envs/management.env
depends_on:
- db
- rabbit
community:
image: community
build:
context: .
dockerfile: community-service/Dockerfile
ports:
- "84:80"
env_file:
- ./.docker-envs/community.env
depends_on:
- db
- rabbit
volumes:
pgdata: