Make host-mode networking optional..
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
..and add missing LETS_ENCRYPT_EMAIL to example env
This commit is contained in:
parent
b733fd661c
commit
25f89d6b4c
|
@ -4,6 +4,7 @@ export STACK_NAME=traefik
|
|||
export DOMAIN=traefik.example.com
|
||||
export LETS_ENCRYPT_ENV=production
|
||||
|
||||
export LETS_ENCRYPT_EMAIL=certs@example.com
|
||||
# export DASHBOARD_ENABLED=true
|
||||
# WARN, INFO etc.
|
||||
export LOG_LEVEL=WARN
|
||||
|
@ -19,3 +20,6 @@ export TRAEFIK_YML_VERSION=v1
|
|||
## SMTP port 587
|
||||
#export COMPOSE_FILE="compose.yml:compose.smtp.yml"
|
||||
#export SMTP_ENABLED=1
|
||||
|
||||
## Host-mode networking
|
||||
#export COMPOSE_FILE="compose.yml:compose.host.yml"
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
ports:
|
||||
- target: 80
|
||||
published: 80
|
||||
mode: host
|
||||
- target: 443
|
||||
published: 443
|
||||
mode: host
|
||||
- target: 2222
|
||||
published: 2222
|
||||
mode: host
|
12
compose.yml
12
compose.yml
|
@ -5,15 +5,9 @@ services:
|
|||
traefik:
|
||||
image: "traefik:2.3.2"
|
||||
ports:
|
||||
- target: 80
|
||||
published: 80
|
||||
mode: host
|
||||
- target: 443
|
||||
published: 443
|
||||
mode: host
|
||||
- target: 2222
|
||||
published: 2222
|
||||
mode: host
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "2222:2222"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
- "letsencrypt:/etc/letsencrypt"
|
||||
|
|
Reference in New Issue