services:
postgres:
image: postgres:15
environment:
POSTGRES_DB: commy_test
POSTGRES_USER: commy_test
POSTGRES_PASSWORD: test_password
ports:
- "5434:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U commy_test"]
interval: 5s
timeout: 5s
retries: 5
mysql:
image: mysql:8
environment:
MYSQL_DATABASE: commy_test
MYSQL_USER: commy_test
MYSQL_PASSWORD: test_password
MYSQL_ROOT_PASSWORD: root_password
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5