-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
106 lines (101 loc) · 2.27 KB
/
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
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
version: "3.7"
services:
minio:
image: minio/minio
command: server --console-address ":9001" /data
ports:
- "127.0.0.127:9000:9000"
- "127.0.0.127:9001:9001"
expose:
- 9000
- 9001
environment:
MINIO_ROOT_USER: &s3_key minio
MINIO_ROOT_PASSWORD: &s3_secret changeme
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
- ./.minio/data:/data
postgres-14:
image: benzine/postgres:14
build:
context: .
dockerfile: Dockerfile.postgres
target: postgres
args:
PGSQL_VERSION: 14
environment:
POSTGRES_USER: example
POSTGRES_PASSWORD: changeme
S3_ENDPOINT: http://minio:9000/
S3_API_KEY: *s3_key
S3_API_SECRET: *s3_secret
S3_USE_PATH_STYLE_ENDPOINT: "yes"
S3_BUCKET: "s3db"
S3_PREFIX: "test/postgres/"
ports:
- "127.0.0.127:5432:5432"
depends_on:
- minio
volumes:
- ./:/sync
mariadb-10.9:
image: benzine/mysql:10.9
build:
context: .
dockerfile: Dockerfile.mariadb
target: mariadb
args:
MARIADB_VERSION: 10.9
environment: &mariadb
MARIADB_RANDOM_ROOT_PASSWORD: "yes"
MARIADB_USER: example
MARIADB_PASSWORD: changeme
MARIADB_DATABASE: s3db
S3_ENDPOINT: http://minio:9000/
S3_API_KEY: *s3_key
S3_API_SECRET: *s3_secret
S3_USE_PATH_STYLE_ENDPOINT: "yes"
S3_BUCKET: "s3db"
S3_PREFIX: "test/mariadb/"
ports:
- "127.0.0.127:3306:3306"
depends_on:
- minio
volumes:
- ./:/sync
mariadb-10.7:
image: benzine/mysql:10.7
build:
context: .
dockerfile: Dockerfile.mariadb
target: mariadb
args:
MARIADB_VERSION: 10.7
environment:
<<: *mariadb
ports:
- "127.0.0.127:3306:3306"
depends_on:
- minio
volumes:
- ./:/sync
mariadb-10.3:
image: benzine/mysql:10.3
build:
context: .
dockerfile: Dockerfile.mariadb
target: mariadb
args:
MARIADB_VERSION: 10.3
environment:
<<: *mariadb
ports:
- "127.0.0.127:3306:3306"
depends_on:
- minio
volumes:
- ./:/sync