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