-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (79 loc) · 1.77 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
services:
pg-user-service:
container_name: pg-user-service
image: bitnami/postgresql:latest
restart: always
ports:
- 5431:5432
environment:
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=tbh-user-service
volumes:
- db-user:/data/postgres
networks:
- tbh-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
pg-hotel-service:
container_name: pg-hotel-service
image: bitnami/postgresql:latest
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=tbh-hotel-service
volumes:
- db-hotel:/data/postgres
networks:
- tbh-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
pg-flight-service:
container_name: pg-flight-service
image: bitnami/postgresql:latest
restart: always
ports:
- 5433:5432
environment:
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=docker
- POSTGRES_DB=tbh-flight-service
volumes:
- db-flight:/data/postgres
networks:
- tbh-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
tbh-rabbitmq:
image: rabbitmq:3-management
container_name: tbh-rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
volumes:
- rabbitmq_data:/var/lib/rabbitmq
networks:
- tbh-network
networks:
tbh-network:
driver: bridge
volumes:
db-user:
db-flight:
db-hotel:
rabbitmq_data: