-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 980 Bytes
/
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
services:
axon-server:
image: axoniq/axonserver:4.6.11
container_name: axon-server
restart: unless-stopped
ports:
- "8024:8024"
- "8124:8124"
mysql:
image: mysql:9.0.1
container_name: mysql
restart: unless-stopped
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=customerdb
healthcheck:
test: "mysqladmin ping -u root -p$${MYSQL_ROOT_PASSWORD}"
postgres:
container_name: postgres
image: postgres:16.3
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_DB=restaurantdb
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
healthcheck:
test: "pg_isready -U postgres"
mongodb:
image: mongo:7.0.12
container_name: mongodb
restart: unless-stopped
ports:
- "27017:27017"
healthcheck:
test: "echo 'db.stats().ok' | mongosh localhost:27017/foodorderingdb --quiet"