2026-05-23 12:43:51 +02:00
|
|
|
# Lokaler Produktions-Test: App-Image + Postgres (ähnlich Coolify mit zwei Services)
|
|
|
|
|
#
|
|
|
|
|
# docker compose build
|
|
|
|
|
# docker compose up -d
|
2026-07-27 21:47:27 +02:00
|
|
|
# curl http://127.0.0.1:${APP_Port}/health.php
|
2026-05-23 12:43:51 +02:00
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
web:
|
|
|
|
|
build: .
|
2026-06-18 09:53:39 +02:00
|
|
|
restart: unless-stopped
|
2026-05-23 12:43:51 +02:00
|
|
|
ports:
|
2026-07-27 21:47:27 +02:00
|
|
|
- "${APP_Port=8080}:80"
|
2026-05-23 12:43:51 +02:00
|
|
|
environment:
|
|
|
|
|
DATABASE_URL: postgresql://flixcooks:flixcooks_prod@postgres:5432/flixcooks
|
|
|
|
|
FLIXCOOKS_ADMIN_KEY: ${FLIXCOOKS_ADMIN_KEY:-change-me-in-production}
|
|
|
|
|
depends_on:
|
|
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
|
image: postgres:16-alpine
|
2026-06-18 09:53:39 +02:00
|
|
|
restart: unless-stopped
|
2026-05-23 12:43:51 +02:00
|
|
|
environment:
|
|
|
|
|
POSTGRES_USER: flixcooks
|
|
|
|
|
POSTGRES_PASSWORD: flixcooks_prod
|
|
|
|
|
POSTGRES_DB: flixcooks
|
|
|
|
|
volumes:
|
|
|
|
|
- pg_data:/var/lib/postgresql/data
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U flixcooks -d flixcooks"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
pg_data:
|