-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.41 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.41 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
name: koin-local
services:
mysql:
image: mysql:8.0.29
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: koin
MYSQL_USER: koin
MYSQL_PASSWORD: koin
ports:
- "13306:3306"
volumes:
- koin-local-mysql:/var/lib/mysql
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -p$${MYSQL_ROOT_PASSWORD} --silent"]
interval: 5s
timeout: 3s
retries: 30
redis:
image: redis:7.0.9
command: ["redis-server", "--requirepass", "koin"]
ports:
- "16379:6379"
volumes:
- koin-local-redis:/data
healthcheck:
test: ["CMD-SHELL", "redis-cli -a koin ping | grep PONG"]
interval: 5s
timeout: 3s
retries: 30
mongo:
image: mongo:8.2.3
environment:
MONGO_INITDB_ROOT_USERNAME: koin
MONGO_INITDB_ROOT_PASSWORD: koin
MONGO_INITDB_DATABASE: koin
ports:
- "27018:27017"
volumes:
- koin-local-mongo:/data/db
- koin-local-mongo-config:/data/configdb
healthcheck:
test: ["CMD-SHELL", "mongosh --quiet -u koin -p koin --authenticationDatabase admin --eval 'db.adminCommand({ ping: 1 }).ok' | grep 1"]
interval: 5s
timeout: 3s
retries: 30
volumes:
koin-local-mysql:
koin-local-redis:
koin-local-mongo:
koin-local-mongo-config: