Files
robinhood/docker-compose.yml
T

23 lines
462 B
YAML

version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: gold_trading_db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: gold_trading_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data: