-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
33 lines (32 loc) · 926 Bytes
/
docker-compose.yaml
File metadata and controls
33 lines (32 loc) · 926 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
services:
traefik:
image: docker.io/traefik:v3.6@sha256:171c9c3565b29f6c133f1c1b43c5d4e5853415198e9e1078c001f8702ff66aec
container_name: traefik
restart: always
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedByDefault=false"
- "--providers.docker.network=bridge"
- "--entrypoints.web.address=:80"
ports:
- target: 80
published: 8000
mode: host
- target: 8080
published: 8080
mode: host
volumes:
- "${DOCKER_SOCK:-/var/run/docker.sock}:/var/run/docker.sock"
networks:
- bridge-net
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=bridge"
- "traefik.http.routers.api.rule=Host(`traefik.localhost`)"
- "traefik.http.routers.api.service=api@internal"
networks:
bridge-net:
external: true
name: bridge