878d632dc8
VERSION-Datei (0.1.0.0), Release-Flow in update-prod.sh und Build-time-Einbindung der Versionsnummer im Footer mit Copyright-Link. Co-authored-by: Cursor <cursoragent@cursor.com>
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: daagbox-prod-db
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: daagbox
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres -d daagbox"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
backend:
|
|
build:
|
|
context: ./server
|
|
dockerfile: Dockerfile
|
|
container_name: daagbox-prod-backend
|
|
restart: always
|
|
environment:
|
|
PORT: 5000
|
|
DATABASE_URL: "postgresql://postgres:postgres@db:5432/daagbox?schema=public"
|
|
RP_ID: ${RP_ID:-localhost}
|
|
ORIGIN: ${ORIGIN:-http://localhost}
|
|
command: sh -c "npx prisma db push && node dist/index.js"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: client/Dockerfile
|
|
args:
|
|
APP_VERSION: ${APP_VERSION:-0.1.0.0-dev}
|
|
container_name: daagbox-prod-frontend
|
|
restart: always
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
pgdata:
|
|
name: daagbox-prod-pgdata
|