Files
WRNexusJS/docker-compose.yml
Clintchiz 2c960fc1dc
Quality / quality (ubuntu-latest) (push) Failing after 9m49s
Quality / quality (windows-latest) (push) Canceled after 0s
refactor: migrate legacy wire namespace to wrn
2026-08-12 18:51:15 +05:30

33 lines
866 B
YAML

# Local Postgres + MySQL for the live database integration tests.
# bun run test:db:live # spins these up, runs the tests, tears down
# Ports are offset (5433 / 3307) to avoid clashing with local installs.
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: wrn
POSTGRES_PASSWORD: wrn
POSTGRES_DB: wrn_test
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U wrn -d wrn_test"]
interval: 2s
timeout: 3s
retries: 40
mysql:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: wrn
MYSQL_DATABASE: wrn_test
MYSQL_USER: wrn
MYSQL_PASSWORD: wrn
ports:
- "3307:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-uwrn", "-pwrn"]
interval: 3s
timeout: 3s
retries: 40