Files
nym/nyx-chain-watcher/pgsql/docker-compose.yml
T
Mark Sinclair e4ad1e2e1b wip
2025-07-06 17:11:10 +01:00

21 lines
671 B
YAML

services:
postgres-test:
image: postgres:16-alpine
container_name: nyx_chain_watcher_postgres_test
environment:
POSTGRES_DB: nyx_chain_watcher_test
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpass
ports:
- '5433:5432' # Map to 5433 to avoid conflicts with default PostgreSQL
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U testuser -d nyx_chain_watcher_test']
interval: 5s
timeout: 5s
retries: 5
# Optional: Add volume for persistent data during development
# volumes:
# - nyx_chain_watcher_postgres_test_data:/var/lib/postgresql/data
#volumes:
# nyx_chain_watcher_postgres_test_data: