-
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) · 906 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 906 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
version: "3.3"
services:
traefik:
image: docker.io/traefik:latest
container_name: traefik
ports:
- "${SERVICE_IP}:${PORT_traefik}:80"
volumes:
- "${DOCKER_SOCKET}:/var/run/docker.sock"
networks:
- lb
command:
- "--accesslog=true"
- "--log=true"
- "--log.level=DEBUG"
- "--api=true"
- "--api.insecure=true"
- "--api.debug=true"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.ws"
labels:
traefik.enable: "true"
traefik.docker.network: lb
traefik.http.routers.traefik.rule: "Host(`${SERVICE_NAME}.${DOMAIN}`)"
traefik.http.routers.traefik.tls: "false"
traefik.http.services.traefik.loadbalancer.server.port: 8080
networks:
lb:
external: true
name: lb