-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
53 lines (49 loc) · 1.46 KB
/
compose.yaml
File metadata and controls
53 lines (49 loc) · 1.46 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.9"
services:
traefik:
container_name: traefik
image: "traefik:2.11"
command:
- --providers.docker=true
- --providers.docker.network=wultiplexor
- --entryPoints.web.address=:80
- --entryPoints.websecure.address=:443
- --certificatesResolvers.letsencrypt.acme.tlsChallenge=true
- --certificatesResolvers.letsencrypt.acme.email=${ACME_EMAIL}
- --certificatesResolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme.json
environment:
- ACME_AGREE=true
volumes:
- /etc/traefik/acme
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
networks:
- wultiplexor
restart: unless-stopped
wultiplexor:
container_name: wultiplexor
build:
context: ./
dockerfile: Dockerfile
labels:
- traefik.http.routers.wultiplexor.rule=Host(`${DOMAIN}`)
- traefik.http.routers.wultiplexor.service=wultiplexor
- traefik.http.services.wultiplexor.loadbalancer.server.port=8000
- traefik.http.routers.wultiplexor.entrypoints=websecure
- traefik.http.routers.wultiplexor.tls.certresolver=letsencrypt
networks:
- wultiplexor
restart: unless-stopped
command: |
wultiplexor -b 0.0.0.0 -p 8000 -H X-Forwarded-For -s ${SECRET}
networks:
wultiplexor:
external: true