34 lines
989 B
YAML
34 lines
989 B
YAML
|
version: "3.8"
|
||
|
|
||
|
services:
|
||
|
traefik:
|
||
|
image: traefik:v2.3.4
|
||
|
command:
|
||
|
- "--log.level=ERROR"
|
||
|
# - "--api.insecure=true"
|
||
|
- "--providers.docker=true"
|
||
|
- "--providers.docker.exposedbydefault=false"
|
||
|
- "--entrypoints.web.address=:80"
|
||
|
- "--entrypoints.websecure.address=:443"
|
||
|
- "--certificatesresolvers.myhttpchallenge.acme.httpchallenge=true"
|
||
|
- "--certificatesresolvers.myhttpchallenge.acme.httpchallenge.entrypoint=web"
|
||
|
- "--certificatesresolvers.myhttpchallenge.acme.email=${EMAIL}"
|
||
|
- "--certificatesresolvers.myhttpchallenge.acme.storage=/letsencrypt/acme.json"
|
||
|
- "--accesslog=true"
|
||
|
restart: always
|
||
|
ports:
|
||
|
- 80:80
|
||
|
- 443:443
|
||
|
# - 8080:8080
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||
|
- ${DATA_PATH}:/letsencrypt
|
||
|
container_name: traefik
|
||
|
labels:
|
||
|
- "co.elastic.logs/module=traefik"
|
||
|
- "co.elastic.logs/fileset=access"
|
||
|
|
||
|
networks:
|
||
|
default:
|
||
|
name: proxy
|