examples and DNS_RESOLVERS fix
This commit is contained in:
@@ -3,14 +3,15 @@ version: '3'
|
||||
services:
|
||||
|
||||
mytraefik:
|
||||
image: traefik
|
||||
image: traefik:v1.7.26
|
||||
restart: always
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./traefik:/etc/traefik
|
||||
- ./traefik/traefik.toml:/traefik.toml
|
||||
- ./traefik/acme.json:/acme.json
|
||||
|
||||
mywww1:
|
||||
image: bunkerity/bunkerized-nginx
|
||||
@@ -24,7 +25,7 @@ services:
|
||||
labels:
|
||||
- 'traefik.enable=true'
|
||||
- 'traefik.port=80'
|
||||
- 'traefik.frontend.rule=Host:web1.domain.com # replace with your domain
|
||||
- 'traefik.frontend.rule=Host:app1.website.com' # replace with your domain
|
||||
|
||||
mywww2:
|
||||
image: bunkerity/bunkerized-nginx
|
||||
@@ -38,7 +39,7 @@ services:
|
||||
labels:
|
||||
- 'traefik.enable=true'
|
||||
- 'traefik.port=80'
|
||||
- 'traefik.frontend.rule=Host:web2.domain.com # replace with your domain
|
||||
- 'traefik.frontend.rule=Host:app2.website.com' # replace with your domain
|
||||
|
||||
myphp1:
|
||||
image: php:fpm
|
||||
|
||||
0
examples/behind-traefik/traefik/acme.json
Normal file
0
examples/behind-traefik/traefik/acme.json
Normal file
@@ -1 +0,0 @@
|
||||
todo
|
||||
29
examples/behind-traefik/traefik/traefik.toml
Normal file
29
examples/behind-traefik/traefik/traefik.toml
Normal file
@@ -0,0 +1,29 @@
|
||||
debug = false
|
||||
|
||||
logLevel = "ERROR"
|
||||
defaultEntryPoints = ["https","http"]
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":80"
|
||||
[entryPoints.http.redirect]
|
||||
entryPoint = "https"
|
||||
[entryPoints.https]
|
||||
address = ":443"
|
||||
[entryPoints.https.tls]
|
||||
|
||||
[retry]
|
||||
|
||||
[docker]
|
||||
endpoint = "unix:///var/run/docker.sock"
|
||||
domain = "website.com"
|
||||
watch = true
|
||||
exposedByDefault = false
|
||||
|
||||
[acme]
|
||||
email = "contact@website.com"
|
||||
storage = "acme.json"
|
||||
entryPoint = "https"
|
||||
onHostRule = true
|
||||
[acme.httpChallenge]
|
||||
entryPoint = "http"
|
||||
Reference in New Issue
Block a user