Files
CoHaiSe/docker-compose.yml
T
Esiah 858d862fed
deploy / deploy (push) Canceled after 0s
feat: init repo
2026-11-10 19:56:03 +01:00

57 lines
1.3 KiB
YAML

name: cohaise-web
x-timezone: &timezone
TZ: Europe/Paris
x-restart: &restart
restart: unless-stopped
services:
app-build:
container_name: cohaise-web-app-build
restart: "no"
build:
context: .
dockerfile: docker/Dockerfile.app
target: export
args:
APP_DIR: frontend/web
command: sh /publish.sh
volumes:
- app_data:/output
- ./docker/publish.sh:/publish.sh:ro
nginx:
container_name: cohaise-web-nginx
build:
context: .
dockerfile: docker/Dockerfile
args:
NGINX_CONF: web.conf
ports:
# Tunnel Cloudflare en amont : n'ecouter que sur la boucle locale.
- "127.0.0.1:${COHAISE_HTTP_PORT:-8080}:80"
# Le tunnel Cloudflare joint nginx par son nom sur le reseau partage.
networks:
- default
- shared-network
environment:
<<: *timezone
volumes:
- app_data:/usr/share/nginx/html
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/healthz || exit 1"]
interval: 10s
timeout: 3s
retries: 3
<<: *restart
networks:
# Reseau partage avec le tunnel Cloudflare et les autres applications de
# l'hote. Externe : cree par le compose du tunnel, pas par ce projet.
shared-network:
external: true
volumes:
app_data: