grundstruktur der dockerverzeichnisse mit richtegen funktionsfähigen docker files

This commit is contained in:
Alexander Hessenkamp
2024-08-22 16:25:57 +02:00
parent 034aedef72
commit 464b87a74b
22 changed files with 765 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
version: '3'
services:
reverse-proxy:
image: traefik:v3.1
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.yml:/etc/traefik/traefik.yml
- ./acme.json:/acme.json
networks:
- traefik_network
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`traefik.hessenkamp-server.de`)"
- "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.routers.dashboard.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=admino:$$apr1$$RaHHY28p$$EMckBAfuRv1BF2Qvy40d20"
- "traefik.http.routers.dashboard.entrypoints=websecure"
- "traefik.http.routers.dashboard.tls=true"
- "traefik.http.routers.dashboard.tls.certresolver=letsencrypt"
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
- "traefik.http.routers.http-catchall.entrypoints=web"
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
traefik_network:
name: traefik_network

View File

@@ -0,0 +1,20 @@
api:
dashboard: true
entryPoints:
web:
address: ":80"
websecure:
address: ":443"
providers:
docker:
exposedByDefault: false
certificatesResolvers:
letsencrypt:
acme:
email: alexander@hessenkamp.de
storage: acme.json
httpChallenge:
entryPoint: web