docker: add traefik labels

This commit is contained in:
Chika 2022-12-01 15:57:58 +03:00
parent 603fbdab27
commit 520e535e47
2 changed files with 11 additions and 1 deletions

3
.env
View File

@ -1 +1,2 @@
URL_DOWNLOAD=
URL_DOWNLOAD=
WEB_HOST=

View File

@ -10,6 +10,15 @@ services:
- URL_DOWNLOAD=${URL_DOWNLOAD}
networks:
- internal_network
labels:
- 'traefik.enable=true'
- 'traefik.backend=proxy'
- 'traefik.docker.network=web'
- 'traefik.http.routers.proxy.rule=Host(`${WEB_HOST}`)'
- 'traefik.http.routers.proxy.entrypoints=web-secure'
- 'traefik.http.routers.proxy.tls.certresolver=le'
- 'traefik.port=80'
networks:
internal_network: