-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.traefik.yml
More file actions
35 lines (34 loc) · 1.64 KB
/
Copy pathdocker-compose.traefik.yml
File metadata and controls
35 lines (34 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Overlay for a Traefik reverse proxy (e.g. a Dokploy stack). Joins the shared
# proxy network and drops the published port (Traefik routes internally). Set
# DOMAIN in .env (and optionally LEGACY_DOMAIN, e.g. an old domain that now
# CNAMEs here, to keep serving both during a domain migration — it defaults
# to DOMAIN, i.e. a harmless no-op, if unset). Usage:
# docker compose -f docker-compose.yml -f docker-compose.traefik.yml up -d --build
services:
infovore:
ports: !reset []
networks:
- dokploy-network
labels:
- traefik.enable=true
- traefik.http.routers.infovore.rule=Host(`${DOMAIN}`) || Host(`${LEGACY_DOMAIN:-${DOMAIN}}`)
- traefik.http.routers.infovore.entrypoints=websecure
- traefik.http.routers.infovore.tls.certresolver=letsencrypt
- traefik.http.routers.infovore-web.rule=Host(`${DOMAIN}`) || Host(`${LEGACY_DOMAIN:-${DOMAIN}}`)
- traefik.http.routers.infovore-web.entrypoints=web
- traefik.http.routers.infovore-web.middlewares=redirect-to-https@file
- traefik.http.services.infovore.loadbalancer.server.port=3000
ingest:
ports: !reset []
networks:
- dokploy-network
labels:
- traefik.enable=true
- traefik.http.routers.infovore-ingest.rule=(Host(`${DOMAIN}`) || Host(`${LEGACY_DOMAIN:-${DOMAIN}}`)) && PathPrefix(`/api/ingest/`)
- traefik.http.routers.infovore-ingest.priority=100
- traefik.http.routers.infovore-ingest.entrypoints=websecure
- traefik.http.routers.infovore-ingest.tls.certresolver=letsencrypt
- traefik.http.services.infovore-ingest.loadbalancer.server.port=3001
networks:
dokploy-network:
external: true