-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (91 loc) · 1.58 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
version: '3'
networks:
web:
external: true
driver: bridge
services:
db:
image: "postgres:alpine"
container_name: db
volumes:
- mock-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
web:
aliases:
- db
environment:
POSTGRES_DB: mock
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
app:
image: ms/app:1
networks:
web:
aliases:
- app
ports:
- "8080:8080"
links:
- api
- q
depends_on:
- api
- q
api:
image: ms/api:1
environment:
DB_SERVER: db
POSTGRES_DB: mock
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
spring_profiles_active: dev
networks:
web:
aliases:
- api
ports:
- "8082:8082"
links:
- db
depends_on:
- db
q:
image: ms/q:1
environment:
DB_SERVER: db
POSTGRES_DB: mock
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
spring_profiles_active: dev
RABBIT_HOST: rabbitmq
RABBIT_PORT: 5672
networks:
web:
aliases:
- q
ports:
- "8081:8081"
links:
- db
- rabbitmq
depends_on:
- db
- rabbitmq
rabbitmq:
image: rabbitmq:management
ports:
- "5672:5672"
- "15672:15672"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "5672" ]
interval: 5s
timeout: 15s
retries: 1
networks:
web:
aliases:
- rabbitmq
volumes:
mock-data: