add network

This commit is contained in:
Galuh Sahid 2023-12-28 22:55:15 +01:00
parent b43a6e05dd
commit 914c14c77a
1 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,6 @@ version: "3.3"
services:
traefik:
image: "traefik:latest"
network_mode: "host"
container_name: "traefik"
command:
- "--api.dashboard=true"
@ -28,3 +27,9 @@ services:
- "traefik.http.routers.traefik.tls.certresolver=myresolver"
- "traefik.http.routers.traefik.middlewares=traefik-auth"
- "traefik.http.middlewares.traefik-auth.basicauth.users=user:$$apr1$$DzkytTmy$$B/p/aGYr4N4iH0JW8/zbg/"
networks:
- traefik_network
networks:
traefik_network:
external: true