First test of Traefik 2.0
This commit is contained in:
@@ -20,16 +20,20 @@ services:
|
||||
{{- end}}
|
||||
traefik.enable: true
|
||||
### Start Joomla Segment
|
||||
traefik.frontend.entryPoints: http,https
|
||||
traefik.frontend.headers.forceSTSHeader: true
|
||||
traefik.frontend.headers.referrerPolicy: no-referrer # Security enhancement (Prevents leaking of referer information)
|
||||
traefik.frontend.headers.SSLRedirect: true
|
||||
traefik.frontend.headers.STSPreload: true
|
||||
traefik.frontend.headers.STSSeconds: 15552000
|
||||
traefik.frontend.passHostHeader: true
|
||||
traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
||||
traefik.port: "80"
|
||||
# traefik.frontend.entryPoints: http,https
|
||||
# traefik.frontend.headers.forceSTSHeader: true
|
||||
# traefik.frontend.headers.referrerPolicy: no-referrer # Security enhancement (Prevents leaking of referer information)
|
||||
# traefik.frontend.headers.SSLRedirect: true
|
||||
# traefik.frontend.headers.STSPreload: true
|
||||
# traefik.frontend.headers.STSSeconds: 15552000
|
||||
# traefik.frontend.passHostHeader: true
|
||||
# traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
||||
# traefik.port: "80"
|
||||
### End Joomla Segment
|
||||
# Might need to include $${service_name} too
|
||||
traefik.http.routers.$${stack_name}.rule: "Host('${TRAEFIK_HOST}')"
|
||||
traefik.http.routers.$${stack_name}.entrypoints: "['http','https']"
|
||||
traefik.http.routers.$${stack_name}.tls.certresolver: "letsencrypt"
|
||||
links:
|
||||
- mysql
|
||||
restart: on-failure
|
||||
|
||||
@@ -16,9 +16,10 @@ services:
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
ports:
|
||||
- "1200:1200" # Traefik Dashboard (Might be temporary)
|
||||
- "22:22" # SSH
|
||||
#- "80:80" # HTTP
|
||||
#- "443:443" # HTTPS
|
||||
- "80:80" # HTTP
|
||||
- "443:443" # HTTPS
|
||||
- "3306:3306" # MySQL
|
||||
- "19132:19132" # Minecraft
|
||||
restart: always
|
||||
@@ -27,6 +28,7 @@ services:
|
||||
- /etc/localtime:/etc/localtime:ro # Syncronize time of container with the host system
|
||||
- /etc/timezone:/etc/timezone:ro # Syncronize timezone of container with the host system
|
||||
- /Persistent/${DATA_DIR}/Configuration/traefik.toml:/traefik.toml
|
||||
- /Persistent/${DATA_DIR}/Configuration/ExtraConfig:/ExtraConfig
|
||||
- /Persistent/${DATA_DIR}/LetsEncrypt:/letsencrypt # For Let's Encrypt certificates
|
||||
- /Persistent/${DATA_DIR}/Configuration/FileProviders:/FileProviders
|
||||
- /Persistent/${DATA_DIR}/Certificates:/Certificates
|
||||
- /Persistent/${DATA_DIR}/Certificates/ACME:/etc/traefik/acme # For Let's Encrypt certificates
|
||||
- /Persistent/${DATA_DIR}/Logs:/external/logs
|
||||
Reference in New Issue
Block a user