mirror of
https://github.com/michivonah/docker.git
synced 2025-12-22 20:36:27 +01:00
make changes to traefik networks & add labels file
This commit is contained in:
parent
01ba2859a5
commit
a18c228bd8
2 changed files with 18 additions and 2 deletions
17
traefik/config/docker_labels.yml
Normal file
17
traefik/config/docker_labels.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.homarr.entrypoints=http, https"
|
||||
- "traefik.http.routers.homarr.rule=Host(`homarr.example.com`)"
|
||||
- "traefik.http.routers.homarr.tls=true"
|
||||
- "traefik.http.routers.homarr.tls.certresolver=production"
|
||||
- "traefik.docker.network=traefik_traefik"
|
||||
networks:
|
||||
- traefik
|
||||
- memos
|
||||
|
||||
networks:
|
||||
homarr:
|
||||
external: false
|
||||
traefik:
|
||||
name: traefik_traefik
|
||||
external: true
|
||||
|
|
@ -18,6 +18,5 @@ services:
|
|||
|
||||
networks:
|
||||
traefik:
|
||||
name: traefik_default
|
||||
driver: bridge
|
||||
# Network name for other compose files: traefik_traefik
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue