Files
openproject/docker/dev/hocuspocus/docker-compose.yml
T
Jan Sandbrink 827f577c85 Allow to change TLD for docker dev stack
Instead of assuming that the TLD is .local, we allow
to overwrite it with different TLDs, so that the local setup
can be adapted to developer needs.
2026-01-27 13:05:19 +01:00

26 lines
914 B
YAML

services:
hocuspocus:
# In case of MacOS you need to specify the platform in your `docker/dev/hocuspocus/docker-compose.override.yml`:
# platform: linux/amd64
image: openproject/hocuspocus:latest
labels:
- "traefik.enable=true"
- "traefik.http.routers.hocuspocus.rule=Host(`hocuspocus.${OPENPROJECT_DOCKER_DEV_TLD}`)"
- "traefik.http.routers.hocuspocus.service=hocuspocus-service"
- "traefik.http.routers.hocuspocus.tls=true"
- "traefik.http.services.hocuspocus-service.loadbalancer.server.port=1234"
- "traefik.http.routers.hocuspocus.tls.certresolver=step"
restart: unless-stopped
networks:
- gateway
environment:
- ALLOWED_DOMAINS=openproject.${OPENPROJECT_DOCKER_DEV_TLD},localhost
- NODE_TLS_REJECT_UNAUTHORIZED=0
- SECRET=secret12345
networks:
gateway:
external: true
name: gateway
volumes:
node_modules: