-
Notifications
You must be signed in to change notification settings - Fork 129
/
docker-compose-dev.yml
114 lines (113 loc) · 2.99 KB
/
docker-compose-dev.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
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
version: '3'
services:
source-postgres:
image: postgres:13
restart: always
healthcheck:
test: ['CMD', 'pg_isready', '-q', '-d', 'postgres', '-U', 'root']
timeout: 45s
interval: 10s
retries: 10
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
volumes:
- ./db/postgres:/docker-entrypoint-initdb.d/
ports:
- 5432:5432
dest-postgres:
image: postgres:13
restart: always
healthcheck:
test: ['CMD', 'pg_isready', '-q', '-d', 'postgres', '-U', 'root']
timeout: 45s
interval: 10s
retries: 10
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
ports:
- 5453:5432
source-mysql:
image: mysql:8
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
environment:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./db/mysql:/docker-entrypoint-initdb.d
ports:
- 3306:3306
dest-mysql:
image: mysql:8
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
environment:
- MYSQL_ROOT_PASSWORD=password
ports:
- 3307:3306
source-mongodb:
image: mongo:5
restart: always
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo localhost:27017/test --quiet
timeout: 45s
interval: 10s
retries: 10
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- ./db/mongodb:/docker-entrypoint-initdb.d/
ports:
- 27017:27017
dest-mongodb:
image: mongo:5
restart: always
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo localhost:27017/test --quiet
timeout: 45s
interval: 10s
retries: 10
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
ports:
- 27018:27017
bridge-minio:
image: minio/minio:RELEASE.2022-03-17T06-34-49Z
restart: always
command: server --console-address ":9001" /data/minio/
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
interval: 30s
timeout: 20s
retries: 3
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- 9000:9000
- 9001:9001
create-minio-bucket:
image: minio/mc
depends_on:
- bridge-minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://bridge-minio:9000 minioadmin minioadmin;
/usr/bin/mc rm -r --force myminio/replibyte-test;
/usr/bin/mc mb myminio/replibyte-test;
/usr/bin/mc policy download myminio/replibyte-test;
exit 0;
"