-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
35 lines (32 loc) · 922 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
services:
mysql:
container_name: 'mysql'
image: 'mysql:9.1.0'
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:8.0.3'
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:3.4.1'
container_name: 'zipkin'
ports:
- '9411:9411'
healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "9411" ]