-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.development.yaml
More file actions
116 lines (108 loc) · 2.97 KB
/
Copy pathdocker-compose.development.yaml
File metadata and controls
116 lines (108 loc) · 2.97 KB
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
version: "3.9"
services:
# -------------------- AUTH DATABASES --------------------
auth-postgres:
image: postgres:15-alpine
container_name: auth-postgres
environment:
POSTGRES_DB: auth
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5431:5432"
volumes:
- auth_db_data:/var/lib/postgresql/data
auth-redis:
image: redis:latest
container_name: auth-redis
ports:
- "6969:6379"
# -------------------- EVENT DATABASES --------------------
event-postgres:
image: postgres:15-alpine
container_name: event-postgres
environment:
POSTGRES_DB: event
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5433:5432"
volumes:
- event_db_data:/var/lib/postgresql/data
- ../services/event/db/migrations:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d event"]
interval: 10s
timeout: 5s
retries: 5
event-redis:
image: redis:latest
container_name: event-redis
ports:
- "6970:6379"
# -------------------- LOCATION DATABASE --------------------
location-mongo:
image: mongo:6.0
container_name: location-mongo
ports:
- "20007:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: aconcert
volumes:
- location_mongo_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
# -------------------- NOTIFICATION DATABASE --------------------
notification-rabbitmq:
image: rabbitmq:3-management
container_name: aconcert-rabbitmq
ports:
- "5672:5672"
- "15672:15672"
# -------------------- RERSERVATION DATABASE --------------------
reservation-postgres:
image: postgres:15-alpine
container_name: reservation-postgres
environment:
POSTGRES_DB: reservation
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5434:5432"
volumes:
- reservation_db_data:/var/lib/postgresql/data
- ../services/reservation/db/migrations:/docker-entrypoint-initdb.d
reservation-redis:
image: redis:latest
container_name: reservation-redis
command: redis-server --notify-keyspace-events Ex
ports:
- "6972:6379"
healthcheck:
test: ["CMD-SHELL", "redis-cli ping"]
interval: 10s
timeout: 5s
retries: 5
# -------------------- REALTIME DATABASE --------------------
realtime-redis:
image: redis:latest
container_name: realtime-redis
command: redis-server --notify-keyspace-events Ex
ports:
- "6971:6379"
healthcheck:
test: ["CMD-SHELL", "redis-cli ping"]
interval: 10s
timeout: 5s
retries: 5
# -------------------- VOLUMES --------------------
volumes:
auth_db_data:
event_db_data:
location_mongo_data:
reservation_db_data: