Hide unexposed containers
This commit is contained in:
@@ -45,6 +45,7 @@ services:
|
|||||||
- web
|
- web
|
||||||
- backend
|
- backend
|
||||||
labels:
|
labels:
|
||||||
|
- traefik.enable=true
|
||||||
- traefik.http.routers.host_domaine_tld.rule=Host(`host.domain.tld`)
|
- traefik.http.routers.host_domaine_tld.rule=Host(`host.domain.tld`)
|
||||||
- traefik.http.routers.host_domaine_tld.tls=true
|
- traefik.http.routers.host_domaine_tld.tls=true
|
||||||
- traefik.http.routers.host_domaine_tld.tls.certresolver=myresolver
|
- traefik.http.routers.host_domaine_tld.tls.certresolver=myresolver
|
||||||
@@ -53,7 +54,7 @@ services:
|
|||||||
```
|
```
|
||||||
**Penser à remplacer `host.domaine.tls` et `host_domain_tld` par les valeurs qui vont bien.**
|
**Penser à remplacer `host.domaine.tls` et `host_domain_tld` par les valeurs qui vont bien.**
|
||||||
|
|
||||||
Les services qui ne sont pas publié doivent être ajouté au réseau `backend`.
|
Les services qui ne sont pas exposé doivent être ajouté au réseau `backend`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
|
@@ -28,4 +28,5 @@
|
|||||||
entryPoint = "web"
|
entryPoint = "web"
|
||||||
|
|
||||||
[providers.docker]
|
[providers.docker]
|
||||||
|
exposedByDefault = false
|
||||||
network = "web"
|
network = "web"
|
||||||
|
@@ -14,12 +14,13 @@ services:
|
|||||||
- ./conf/acme.json:/acme.json
|
- ./conf/acme.json:/acme.json
|
||||||
- ./conf/custom:/etc/traefik/custom:ro
|
- ./conf/custom:/etc/traefik/custom:ro
|
||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.dashboard.rule=Host(`${HOSTNAME}`)"
|
- traefik.enable=true
|
||||||
- "traefik.http.routers.dashboard.service=api@internal"
|
- traefik.http.routers.dashboard.rule=Host(`${HOSTNAME}`)
|
||||||
- "traefik.http.routers.dashboard.middlewares=auth"
|
- traefik.http.routers.dashboard.service=api@internal
|
||||||
|
- traefik.http.routers.dashboard.middlewares=auth
|
||||||
- traefik.http.routers.dashboard.tls=true
|
- traefik.http.routers.dashboard.tls=true
|
||||||
- traefik.http.routers.dashboard.tls.certresolver=myresolver
|
- traefik.http.routers.dashboard.tls.certresolver=myresolver
|
||||||
- "traefik.http.middlewares.auth.basicauth.users=${DASHBOARDUSERS}"
|
- traefik.http.middlewares.auth.basicauth.users=${DASHBOARDUSERS}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
|
Reference in New Issue
Block a user