-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 878 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 878 Bytes
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
services:
router_middleware:
build:
context: .
restart: always
environment:
PORT: 3000
HTTPS: true
NODE_TLS_REJECT_UNAUTHORIZED: 0
router:
image: traefik:v3.1.2
restart: always
depends_on:
- router_middleware
command:
# - "--log.level=DEBUG"
- "--api.insecure=true"
- "--ping=true"
- "--entrypoints.web.address=:81"
# - "--providers.file.directory=/extra_routing"
# - "--providers.file.watch=true"
- "--providers.http.endpoint=http://router_middleware:3000/traefik.server1.example.com/traefik.server2.example.com"
healthcheck:
test: ["CMD", "traefik", "healthcheck", "--ping"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
# volumes:
# - "$PWD/extra_routing:/extra_routing"
ports:
- "81:81"
- "8080:8080"