Docker compose update
Deploy / deploy (push) Failing after 1s

This commit is contained in:
twotalesanimation
2026-08-18 12:28:50 +02:00
parent 4d555d1a22
commit 76ca160c90
+21 -5
View File
@@ -1,35 +1,51 @@
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_DB: xbid
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- xbid
app:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:3000"
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/xbid
NEXTAUTH_SECRET: change-me-in-production
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_URL: https://xbid.twotalesvfx.com
depends_on:
postgres:
condition: service_healthy
networks:
- xbid
- npm_default
volumes:
postgres_data:
networks:
xbid:
npm_default:
external: true