Initial commit
This commit is contained in:
commit
0fb7ffa113
5 changed files with 83 additions and 0 deletions
0
cert/.gitkeep
Normal file
0
cert/.gitkeep
Normal file
1
config/.gitignore
vendored
Normal file
1
config/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
acme.toml
|
26
config/acme.toml
Normal file
26
config/acme.toml
Normal file
|
@ -0,0 +1,26 @@
|
|||
# new domains and subdomains can be configured here, the file is read
|
||||
# automatically after modification.
|
||||
#
|
||||
# note that domains and subdomains not defined in this file will still work
|
||||
# when defined in a container Host-Rule. However, they will generate
|
||||
# their own ACME request, and will count towards LetsEncrypt's rate limit.
|
||||
|
||||
#[acme]
|
||||
#email = "hostmaster@zom.bi"
|
||||
#storage = "cert/acme.json"
|
||||
#entryPoint = "https"
|
||||
#onDemand = false
|
||||
#OnHostRule = true
|
||||
#
|
||||
#[[acme.domains]]
|
||||
# main = "zom.bi"
|
||||
# sans = [
|
||||
# "blog.zom.bi",
|
||||
# "www.zom.bi",
|
||||
# ]
|
||||
|
||||
# You can define multiple of these blocks, each of which will result in one
|
||||
# certificate.
|
||||
#[[acme.domains]]
|
||||
# main = "zombi.systems"
|
||||
# sans = ["www.zombi.systems", "blog.zombi.systems"]
|
32
config/traefik.toml
Normal file
32
config/traefik.toml
Normal file
|
@ -0,0 +1,32 @@
|
|||
# accept invalid SSL certs for backends
|
||||
InsecureSkipVerify = true
|
||||
|
||||
defaultEntryPoints = ["http", "https"]
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":80"
|
||||
[entryPoints.http.redirect]
|
||||
entryPoint = "https"
|
||||
[entryPoints.https]
|
||||
address = ":443"
|
||||
[entryPoints.https.tls]
|
||||
|
||||
[web]
|
||||
address = ":8080"
|
||||
|
||||
[docker]
|
||||
endpoint = "unix:///var/run/docker.sock"
|
||||
domain = "docker.localhost"
|
||||
watch = true
|
||||
exposedbydefault = false
|
||||
|
||||
# embed acme configuration.
|
||||
# new domains and subdomains can be configured here, the file is read
|
||||
# automatically after modification.
|
||||
# note that domains and subdomains not defined in this file will still work,
|
||||
# when defined in a container Host-Rule. However, they will generate
|
||||
# their own ACME request, and will count towards LetsEncrypt's rate limit.
|
||||
[file]
|
||||
filename = "acme.toml"
|
||||
watch = true
|
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
version: '2'
|
||||
|
||||
services:
|
||||
proxy:
|
||||
image: traefik
|
||||
command: --logLevel=INFO
|
||||
networks:
|
||||
- "webgateway"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
- "./cert/:/cert/"
|
||||
- "./traefik.toml:/traefik.toml:ro"
|
||||
- "./config/:/etc/traefik/:ro"
|
||||
labels:
|
||||
- "traefik.enable=false" # set to true to expose the Monitoring & API
|
||||
- "traefik.backend=proxy"
|
||||
- "traefik.port=8080"
|
||||
|
||||
networks:
|
||||
webgateway:
|
||||
driver: bridge
|
Loading…
Reference in a new issue