1
docker network create public
12345678910111213141516171819
version: 3.8services: 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: - publicnetworks: public: external: true