Files
tibi-docs/docker-compose-local.yml
T
apairon 6d26c2bd1f
Deploy tibi-docs / build-and-deploy (push) Failing after 55s
Online-Fix: Node 22, HOME/Telemetry-Env, Vite allowedHosts für Code-URL
2026-10-16 11:57:05 +00:00

38 lines
1.0 KiB
YAML

name: ${PROJECT_NAME}
services:
docs:
profiles:
- docs
image: node:22
volumes:
- ./:/data
- ./tmp:/tmp
- ./tmp/nonexistent:/nonexistent
- ./tmp/.npm:/.npm
working_dir: /data
environment:
HOME: /tmp
XDG_CONFIG_HOME: /tmp/.config
XDG_CACHE_HOME: /tmp/.cache
ASTRO_TELEMETRY_DISABLED: "1"
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 4321"
expose:
- 4321
labels:
- traefik.enable=true
- online.testversion.code.subdomain=${PROJECT_NAME}
- traefik.http.services.${PROJECT_NAME}-docs.loadbalancer.server.port=4321
user: ${CODER_UID}:${CODER_GID}
docs-build:
profiles:
- build
image: node:22
volumes:
- ./:/data
- ./tmp:/tmp
working_dir: /data
command: sh -c "npm install && npm run build"
user: ${CODER_UID}:${CODER_GID}