Docker-S3DB/docker-compose.yml

107 lines
2.3 KiB
YAML
Raw Permalink Normal View History

2022-08-20 03:20:49 +00:00
version: "3.7"
services:
minio:
2022-08-23 12:19:05 +00:00
image: minio/minio
command: server --console-address ":9001" /data
ports:
- "127.0.0.127:9000:9000"
- "127.0.0.127:9001:9001"
2022-08-20 03:20:49 +00:00
expose:
2022-08-23 12:19:05 +00:00
- 9000
- 9001
2022-08-20 03:20:49 +00:00
environment:
2024-08-07 11:30:30 +00:00
MINIO_ROOT_USER: &s3_key minio
MINIO_ROOT_PASSWORD: &s3_secret changeme
2022-08-20 03:20:49 +00:00
healthcheck:
2024-08-07 11:30:30 +00:00
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
2022-08-20 03:20:49 +00:00
interval: 30s
timeout: 20s
retries: 3
2022-08-23 12:19:05 +00:00
volumes:
- ./.minio/data:/data
2022-08-20 03:20:49 +00:00
postgres-14:
image: benzine/postgres:14
build:
context: .
2022-08-28 09:38:02 +00:00
dockerfile: Dockerfile.postgres
2022-09-01 14:31:45 +00:00
target: postgres
2022-08-20 03:20:49 +00:00
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
2022-08-23 12:19:05 +00:00
S3_USE_PATH_STYLE_ENDPOINT: "yes"
S3_BUCKET: "s3db"
S3_PREFIX: "test/postgres/"
2022-08-20 03:20:49 +00:00
ports:
- "127.0.0.127:5432:5432"
depends_on:
2022-08-23 12:19:05 +00:00
- minio
volumes:
- ./:/sync
2022-08-28 09:38:02 +00:00
mariadb-10.9:
image: benzine/mysql:10.9
build:
context: .
dockerfile: Dockerfile.mariadb
2022-09-01 14:31:45 +00:00
target: mariadb
2022-08-28 09:38:02 +00:00
args:
MARIADB_VERSION: 10.9
2022-08-28 11:45:10 +00:00
environment: &mariadb
2022-08-28 09:38:02 +00:00
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
2022-08-28 11:23:21 +00:00
2023-01-04 12:19:33 +00:00
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
2022-08-28 11:23:21 +00:00
mariadb-10.3:
image: benzine/mysql:10.3
build:
context: .
dockerfile: Dockerfile.mariadb
2022-09-01 14:31:45 +00:00
target: mariadb
2022-08-28 11:23:21 +00:00
args:
MARIADB_VERSION: 10.3
environment:
2022-08-28 11:45:10 +00:00
<<: *mariadb
2022-08-28 11:23:21 +00:00
ports:
- "127.0.0.127:3306:3306"
depends_on:
- minio
volumes:
- ./:/sync