traefik working

This commit is contained in:
venus
2026-05-29 16:17:16 -05:00
parent 4ac9e8e665
commit be2668ce4c

View File

@@ -1,4 +1,3 @@
# compose.yml
# Primary compose file, used to manage the traefik and other network related modules # Primary compose file, used to manage the traefik and other network related modules
# Other compose files to be run named and used my service # Other compose files to be run named and used my service
services: services:
@@ -15,7 +14,24 @@ services:
- "./traefik.yml:/etc/traefik/traefik.yml:ro" # sets the traefik.yml file as the options file for configuring proxy settings - "./traefik.yml:/etc/traefik/traefik.yml:ro" # sets the traefik.yml file as the options file for configuring proxy settings
networks: networks:
traefik: traefik:
- ipv4_address: 172.21.0.1 ipv4_address: 172.21.0.10
labels:
- "traefik.enable=true"
- "traefik.http.routers.dashboard.rule=Host(`traefik.riverrooks.dev`)"
- "traefik.http.routers.dashboard.entrypoints=websecure"
- "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.routers.dashboard.tls=true"
- "traefik.http.routers.dashboard.tls.certresolver=basic"
# MIDDLEWARE
# enable auth MIDDLEWARE
- "traefik.http.routers.dashboard.middlewares=auth"
# define auth type and traffic
- "traefik.http.middlewares.auth.basicauth.users=admin:$$apr1$$cnS8Mv7V$$djacpseKy6M4.XbgG4kgb1"
wg-easy: wg-easy:
image: ghcr.io/wg-easy/wg-easy image: ghcr.io/wg-easy/wg-easy
container_name: wg-easy container_name: wg-easy
@@ -42,11 +58,10 @@ services:
# The Web UI (51821) is handled by Traefik labels instead. # The Web UI (51821) is handled by Traefik labels instead.
ports: ports:
- "51820:51820/udp" - "51820:51820/udp"
networks: networks:
- traefik traefik: {}
dfnk: dfnk:
- ipv4_address: 10.8.0.2 ipv4_address: 10.8.0.2
labels: labels:
# since by default containers are disabled, we need to enable them # since by default containers are disabled, we need to enable them
@@ -68,6 +83,10 @@ services:
networks: networks:
traefik: traefik:
name: traefik
external: true external: true
dfnk: dfnk:
bridge: true driver: bridge
ipam:
config:
- subnet: 10.8.0.0/24