version: '3.8'
services:
postgres:
image: postgres:15
container_name: tinyetl-postgres
environment:
POSTGRES_DB: testdb
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpass
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-scripts/postgres:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U testuser -d testdb"]
interval: 30s
timeout: 10s
retries: 3
mysql:
image: mysql:8.0
container_name: tinyetl-mysql
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: testdb
MYSQL_USER: testuser
MYSQL_PASSWORD: testpass
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./init-scripts/mysql:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "testuser", "-ptestpass"]
interval: 30s
timeout: 10s
retries: 3
command: --default-authentication-plugin=mysql_native_password
mongodb:
image: mongo:7.0
container_name: tinyetl-mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: testuser
MONGO_INITDB_ROOT_PASSWORD: testpass
MONGO_INITDB_DATABASE: testdb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
- ./init-scripts/mongodb:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 30s
timeout: 10s
retries: 3
mssql:
image: mcr.microsoft.com/azure-sql-edge:latest
container_name: tinyetl-mssql
platform: linux/arm64
user: root
environment:
ACCEPT_EULA: "1"
MSSQL_SA_PASSWORD: "TestPass123!"
SA_PASSWORD: "TestPass123!"
MSSQL_COLLATION: "SQL_Latin1_General_CP1_CI_AS"
MSSQL_MEMORY_LIMIT_MB: "4096"
ports:
- "1433:1433"
volumes:
- mssql_data:/var/opt/mssql
- ./init-scripts/mssql:/docker-entrypoint-initdb.d
- ./init-scripts/mssql/init.sh:/init.sh
- ./init-scripts/mssql/install-tools.sh:/install-tools.sh
entrypoint: ["/bin/bash", "/install-tools.sh"]
healthcheck:
test: ["CMD-SHELL", "command -v sqlcmd >/dev/null && sqlcmd -S localhost -U SA -P TestPass123! -C -Q 'SELECT 1' || exit 1"]
interval: 30s
timeout: 10s
retries: 5
start_period: 90s
volumes:
postgres_data:
mysql_data:
mongodb_data:
mssql_data:
networks:
default:
name: tinyetl-network