services: db: image: postgres:16-alpine restart: unless-stopped ports: - "5432:5432" environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: teressa volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 app: image: ${APP_IMAGE:-teressa-copeland-homes:latest} restart: unless-stopped ports: - "3000:3000" env_file: - .env.production environment: - NODE_OPTIONS=--dns-result-order=ipv4first --require /app/scripts/polyfill-dom.cjs dns: - 8.8.8.8 - 1.1.1.1 volumes: - uploads:/app/uploads depends_on: db: condition: service_healthy volumes: uploads: pgdata: