-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
37 lines (34 loc) · 942 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
services:
mysql:
container_name: mysql
image: mysql:9.0.1
restart: unless-stopped
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: authorbookdb
MYSQL_USER: authorbookuser
MYSQL_PASSWORD: authorbookpass
MYSQL_ROOT_PASSWORD: secret
healthcheck:
test: "mysqladmin ping -u root -p$${MYSQL_ROOT_PASSWORD}"
mongodb:
image: bitnami/mongodb:7.0.14
container_name: mongodb
ports:
- "27017:27017"
environment:
MONGODB_DATABASE: bookreviewdb
MONGODB_USERNAME: bookreviewuser
MONGODB_PASSWORD: bookreviewpass
MONGODB_ROOT_PASSWORD: secret
healthcheck:
test: echo 'db.stats().ok' | mongosh localhost:27017/bookreviewdb --quiet
zipkin:
image: openzipkin/zipkin:2.24.3
container_name: zipkin
restart: unless-stopped
ports:
- "9411:9411"
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "9411" ]