docker-compose.yml•1.85 kB
version: '3.8'
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: testdb
ports:
- "35432:5432"
volumes:
- ../connectors/postgres/testdata/test_data.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: testdb
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- "33306:3306"
volumes:
- ../connectors/mysql/testdata/test_data.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 5
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
ACCEPT_EULA: Y
SA_PASSWORD: YourStrong@Passw0rd
MSSQL_PID: Developer
ports:
- "31433:1433"
volumes:
- ../connectors/mssql/testdata/test_data.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "YourStrong@Passw0rd" -Q "SELECT 1" || exit 1
interval: 5s
timeout: 5s
retries: 5
clickhouse:
image: clickhouse/clickhouse-server:latest
environment:
CLICKHOUSE_USER: clickhouse
CLICKHOUSE_PASSWORD: password
CLICKHOUSE_DB: testdb
ports:
- "38123:8123"
- "39000:9000"
volumes:
- ../connectors/clickhouse/testdata/test_data.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8123/ping"]
interval: 5s
timeout: 5s
retries: 5