initial commit

This commit is contained in:
D. Scott Boggs 2023-08-17 18:44:06 +00:00
commit 6d2b48ec94
4 changed files with 77 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
**/acme*.json
**/do-auth.token

0
config/.keep Normal file
View file

34
docker-compose.yml Normal file
View file

@ -0,0 +1,34 @@
version: "3.5"
services:
proxy:
image: traefik:v2.9
volumes:
- source: /var/run/docker.sock
target: /var/run/docker.sock
type: bind
- source: ./traefik.yaml
target: /traefik.yaml
type: bind
- source: ./config
target: /config
type: bind
ports:
- 80:80
- 443:443
networks:
web:
ipv4_address: 172.128.128.128
environment:
DO_AUTH_TOKEN_FILE: /config/do-auth.token
labels:
traefik.enable: true
traefik.http.middlewares.redirect-to-https.redirectScheme.scheme: https
traefik.http.middlewares.redirect-to-https.redirectScheme.permanent: true
traefik.http.routers.redirs.rule: HostRegexp(`{host:.+}`)
traefik.http.routers.redirs.entrypoints: web
traefik.http.routers.redirs.middlewares: redirect-to-https
networks:
web:
external: true

41
traefik.yaml Normal file
View file

@ -0,0 +1,41 @@
entrypoints:
web:
address: :80
websecure:
address: :443
api:
dashboard: true
certificatesResolvers:
letsencrypt:
acme:
email: sysadmin@tams.tech
storage: /config/acme.json
dnsChallenge:
provider: digitalocean
letsencrypt_standalone:
acme:
email: sysadmin@tams.tech
storage: /config/acme-standalone.json
httpChallenge:
entryPoint: web
providers:
docker:
watch: true
network: web
exposedByDefault: false
file:
filename: /config/traefik_dynamic.yaml
log:
level: INFO
format: json
# accessLog:
# format: json
# filters:
# statusCodes: [ 300-599 ]
# minDuration: 500ms