Refactor docker-compose.yml to update dozzle service configuration
This commit is contained in:
+4
-3
@@ -1,7 +1,8 @@
|
||||
x-environment: &default-environment
|
||||
LOG_LEVEL: "ERROR"
|
||||
ACME_PATH: "./acme.json"
|
||||
NETWORK: "${NETWORK:-host}"
|
||||
NETWORK: "${NETWORK:-web}"
|
||||
DOMAINNAME: "${DOMAINNAME:-furyhawk.lol}"
|
||||
TZ: "${TZ:-Asia/Singapore}"
|
||||
FIN_LOCATION: ""
|
||||
STREAMLIT_FIN_SERVER_PORT: "8501"
|
||||
@@ -23,7 +24,7 @@ services:
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
environment:
|
||||
- TZ="${TZ:-Asia/Singapore}"
|
||||
<<: *default-environment
|
||||
restart: always
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
@@ -81,6 +82,6 @@ services:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.traefik.entrypoints=web-secure"
|
||||
- "traefik.http.routers.traefik.rule=Host(`dashboard.${DOMAINNAME}`)"
|
||||
- "traefik.http.routers.traefik.middlewares=auth"
|
||||
- "traefik.http.routers.traefik.middlewares=auth@file"
|
||||
- "traefik.http.routers.traefik.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.traefik.service=api@internal"
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
http:
|
||||
middlewares:
|
||||
middlewares-basic-auth:
|
||||
basicAuth:
|
||||
# users:
|
||||
# - "user:$apsdfswWvC/6.$E3FtsfTntPC0wVJ7IUVtX1"
|
||||
usersFile: "/run/secrets/basic_auth_credentials"
|
||||
realm: "Traefik 3 Basic Auth"
|
||||
Reference in New Issue
Block a user