Traefik and Docker Compose

Moki Lv6
1
docker network create public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: 3.8

services:
reverse-proxy:
restart: always
image: traefik:2.8
command: --log.level=INFO --accesslog=false --api.dashboard=false --api.insecure=true --api=false --providers.docker=true --providers.docker.network=web --providers.docker.exposedbydefault=false --entrypoints.web.address=:80 --entryPoints.websecure.address=":443" --certificatesResolvers.sample.acme.email="xxxx@yyy.zzz" --certificatesResolvers.sample.acme.storage="/acme.json" --certificatesResolvers.sample.acme.httpChallenge.entryPoint=web --entryPoints.websecure.transport.respondingTimeouts.readTimeout=3600 --entryPoints.websecure.transport.respondingTimeouts.writeTimeout=3600 --entryPoints.websecure.transport.respondingTimeouts.idleTimeout=3600
ports:
- 80:80
- 443:443
volumes:
- ./acme.json:/acme.json
- /var/run/docker.sock:/var/run/docker.sock
networks:
- public

networks:
public:
external: true
On this page
Traefik and Docker Compose