running compose project with alphamill + vaultwarden
This commit is contained in:
parent
d8f02c5c15
commit
a38d558e84
1 changed files with 37 additions and 104 deletions
|
|
@ -4,10 +4,11 @@ services:
|
|||
container_name: traefik
|
||||
image: traefik:v3.7
|
||||
command:
|
||||
- "--api.insecure=true"
|
||||
- "--api=true"
|
||||
- "--tracing=true"
|
||||
- "--providers.docker=true"
|
||||
- "--providers.file.directory=/etc/traefik/apps"
|
||||
- "--providers.file.watch=true"
|
||||
- "--providers.docker.exposedByDefault=false"
|
||||
- "--providers.file.directory=/etc/traefik/dynamic"
|
||||
- "--entrypoints.web.address=:80"
|
||||
- "--entrypoints.websecure.address=:443"
|
||||
- "--entrypoints.minecraft.address=:25565/tcp"
|
||||
|
|
@ -16,6 +17,11 @@ services:
|
|||
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
|
||||
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
|
||||
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
|
||||
- "--entrypoints.websecure.asDefault=true"
|
||||
- "--entrypoints.websecure.http.tls.domains[0].main=alphamill.gr"
|
||||
- "--entrypoints.websecure.http.tls.domains[0].sans=*.alphamill.gr"
|
||||
- "--entrypoints.websecure.http.tls.domains[1].main=stvnliu.me"
|
||||
- "--entrypoints.websecure.http.tls.domains[1].sans=*.stvnliu.me"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
ports:
|
||||
|
|
@ -26,7 +32,12 @@ services:
|
|||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./certs:/certs:ro
|
||||
- ./dynamic:/etc/traefik/dynamic:ro
|
||||
- /srv/docker:/etc/traefik/apps:ro
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.dashboard.rule=Host(`traefik.stvnliu.me`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
|
||||
- "traefik.http.routers.dashboard.service=api@internal"
|
||||
- "traefik.http.routers.dashboard.middlewares=auth"
|
||||
- "traefik.http.middlewares.auth.basicauth.users=admin:$$apr1$$UTCvF4Ic$$.S6iKW534mXL70ndt3L/P1"
|
||||
networks:
|
||||
- proxy_net
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue