services: db: image: postgres:16-alpine container_name: novintrades-db restart: unless-stopped environment: POSTGRES_USER: novintrades POSTGRES_PASSWORD: novintrades POSTGRES_DB: novintrades ports: - "5433:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U novintrades -d novintrades"] interval: 5s timeout: 5s retries: 10 volumes: postgres_data: