Add traefik config
This commit is contained in:
parent
0758b6e223
commit
f57fc14623
24
traefik/docker-compose.yml
Normal file
24
traefik/docker-compose.yml
Normal file
@ -0,0 +1,24 @@
|
||||
version: '2'
|
||||
services:
|
||||
proxy:
|
||||
image: traefik
|
||||
restart: always
|
||||
networks:
|
||||
- "webgateway"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./traefik.toml:/traefik.toml
|
||||
- /containers/traefik/acme:/etc/traefik/acme
|
||||
- /containers/traefik/log:/etc/traefik/log
|
||||
environment:
|
||||
- "DO_AUTH_TOKEN=3fd4d00a9c421f4e029a5f9221b7f558a0d6031002803be27d7310a5cc30c990"
|
||||
|
||||
networks:
|
||||
webgateway:
|
||||
driver: bridge
|
||||
|
||||
|
35
traefik/traefik.toml
Normal file
35
traefik/traefik.toml
Normal file
@ -0,0 +1,35 @@
|
||||
debug = true
|
||||
traefikLogsFile = "/etc/traefik/log/traefik.log"
|
||||
accessLogsFile = "/etc/traefik/log/access.log"
|
||||
logLevel = "DEBUG"
|
||||
|
||||
defaultEntryPoints = ["https", "http"]
|
||||
|
||||
[acme]
|
||||
email = "autonomic-coop@posteo.com"
|
||||
storage = "/etc/traefik/acme/acme.json"
|
||||
entryPoint = "https"
|
||||
onHostRule = false
|
||||
[acme.dnsChallenge]
|
||||
provider = "digitalocean"
|
||||
delayBeforeCheck = 0
|
||||
|
||||
[[acme.domains]]
|
||||
main = "map.ojuso.org"
|
||||
sans = ["translate.ojuso.org"]
|
||||
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":80"
|
||||
[entryPoints.http.redirect]
|
||||
entryPoint = "https"
|
||||
[entryPoints.https]
|
||||
address = ":443"
|
||||
compress = false
|
||||
[entryPoints.https.tls]
|
||||
|
||||
[docker]
|
||||
endpoint = "unix:///var/run/docker.sock"
|
||||
domain = "docker.localhost"
|
||||
watch = true
|
||||
|
Loading…
Reference in New Issue
Block a user