Deployment-Rules for second server

This commit is contained in:
2026-09-26 11:51:49 +02:00
parent 790e8e1dbc
commit 985c9ce07e
9 changed files with 814 additions and 1 deletions
+42
View File
@@ -0,0 +1,42 @@
# Compose-Stack für endeavour (KeyHelp-Server, siehe docs/implement-endeavour.md).
# Wird über /opt/mareike/bin/deploy.sh gesteuert, das die MAREIKE_*-Variablen setzt.
name: mareike
x-logging: &logging
driver: json-file
options:
max-size: "10m"
max-file: "5"
services:
app:
build:
context: ../..
dockerfile: docker/endeavour/Dockerfile
target: app
args:
UID: ${MAREIKE_UID:-2000}
GID: ${MAREIKE_GID:-2000}
image: mareike-endeavour-app:latest
restart: unless-stopped
volumes:
- ${MAREIKE_ENV_FILE:-/opt/mareike/shared/.env}:/var/www/html/.env:ro
- ${MAREIKE_STORAGE:-/opt/mareike/storage}:/var/www/html/storage
# Socket der KeyHelp-MariaDB auf dem Host (DB_SOCKET=/run/mysqld/mysqld.sock)
- ${MAREIKE_DB_SOCKET_DIR:-/run/mysqld}:/run/mysqld
logging: *logging
web:
build:
context: ../..
dockerfile: docker/endeavour/Dockerfile
target: web
image: mareike-endeavour-web:latest
restart: unless-stopped
depends_on:
- app
ports:
# Nur lokal erreichbar – nach außen geht es ausschließlich über den KeyHelp-Webserver.
- "127.0.0.1:${MAREIKE_HTTP_PORT:-8080}:80"
logging: *logging