This commit is contained in:
lucashahmann committed 2026-10-13 10:59:13 +02:00
1 parent 9cb9531e78
commit 5ecb2a02ed
2 files changed
+43 -22

No files matched your search

+6 -22
View File
@@ -5,28 +5,18 @@
# Netz des LXC-Containers.
#
# cp deploy/.env.example deploy/.env # Werte eintragen (TRUST_PROXY = IP des Traefik-Servers!)
# docker compose -f deploy/docker-compose.standalone.yml --env-file deploy/.env up -d --build
# sh deploy/build.sh # Images im Host-Netzwerk bauen (nach jedem git pull)
# docker compose -f deploy/docker-compose.standalone.yml --env-file deploy/.env up -d
#
# Erreichbar auf dem LXC-Container: web http://<LXC-IP>:3000 api http://<LXC-IP>:3001
# Die Datenbank lauscht nur auf 127.0.0.1. Traefik-Konfiguration: docs/OPERATIONS.md, "Traefik auf einem anderen Server".
name: atm10-stats
x-proxy-build-args: &proxy-build-args
HTTP_PROXY: ${HTTP_PROXY:-}
HTTPS_PROXY: ${HTTPS_PROXY:-}
NO_PROXY: ${NO_PROXY:-}
http_proxy: ${HTTP_PROXY:-}
https_proxy: ${HTTPS_PROXY:-}
no_proxy: ${NO_PROXY:-}
x-backend: &backend
build:
context: ..
dockerfile: backend/Dockerfile
network: host
args: *proxy-build-args
# built by deploy/build.sh (docker build --network host)
image: atm10-stats/backend:latest
pull_policy: never
restart: unless-stopped
network_mode: host
env_file: ${ENV_FILE:-.env}
@@ -68,15 +58,9 @@ services:
disable: true
web:
build:
context: ..
dockerfile: web/Dockerfile
network: host
args:
<<: *proxy-build-args
# Next.js resolves the /api rewrite at build time: the API is on the same host.
API_INTERNAL_URL: http://127.0.0.1:3001
# built by deploy/build.sh (docker build --network host)
image: atm10-stats/web:latest
pull_policy: never
restart: unless-stopped
network_mode: host
environment: