ARG-Variablen durch feste Werte in FROM ersetzt — nicht per .env ueberschreibbar. PYTHON_VERSION, NODE_VERSION, NPM_VERSION, NGINX_VERSION aus .env, env-sample und Compose-Dateien entfernt. Deployment-Anleitung erstellt und entsprechend angepasst. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
26 lines
1.2 KiB
YAML
26 lines
1.2 KiB
YAML
name: kbpbase
|
|
services:
|
|
nginx-proxy:
|
|
build:
|
|
context: . # Repo-Root (fuer frontend-Stage im NGINX-Dockerfile)
|
|
dockerfile: NGINX_Server/Dockerfile # explizit, da Context nicht mehr NGINX_Server/
|
|
ports:
|
|
- ${NGINX_HOST_PORT}:4430
|
|
volumes:
|
|
# NGINX_STATIC_DIR entfaellt in Prod — statische Dateien sind im NGINX-Image
|
|
# NGINX_CONFIG_TEMPLATE_DIR entfaellt in Prod — Templates sind im Image
|
|
# Beide werden in Dev per bind-mount ueberschrieben (siehe docker-compose.dev.yaml)
|
|
- ${NGINX_CERTS}:/etc/certs
|
|
environment:
|
|
- NGINX_USE_SSL=${NGINX_USE_SSL:-true}
|
|
- NGINX_CERT=${NGINX_CERT}
|
|
- NGINX_CERT_KEY=${NGINX_CERT_KEY}
|
|
- NGINX_SERVER_NAME=${NGINX_SERVER_NAME}
|
|
pythonapp:
|
|
build:
|
|
context: . # Repo-Root (fuer COPY-Pfade im Dockerfile)
|
|
dockerfile: App_Server/Dockerfile # explizit, da Context nicht mehr App_Server/
|
|
volumes:
|
|
- ${PYTHON_DB_DIR}:/usr/var/pythonappdb
|
|
# python-venv Volume entfaellt — venv ist im Image
|
|
# (dev-Stage definiert eigenen Volume in docker-compose.dev.yaml) |