nbit-websites ready to run...

This commit is contained in:
2021-08-10 14:43:53 +02:00
parent 0ccb226e44
commit 1426d7816a
3 changed files with 29 additions and 9 deletions
+13 -1
View File
@@ -3,13 +3,25 @@ version: "3.5"
services:
simpleservice:
image: "traefik/whoami"
image: traefik/whoami
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami2.rule=Host(`moby.nbit.ch`) && Path(`/whoami2`)"
- "traefik.http.routers.whoami2.entrypoints=websecure"
- "traefik.http.routers.whoami2.tls.certresolver=myresolver"
nbitwebsite:
image: "nginx:latest"
volumes:
- /home/joerg/nbit-website/document_root:/usr/share/nginx/html
labels:
- "traefik.enable=true"
- "traefik.http.routers.nbitwebsite.rule=Host(`nbit.ch`,`www.nbit.ch`)"
- "traefik.http.routers.nbitwebsite.entrypoints=websecure"
- "traefik.http.routers.nbitwebsite.tls.certresolver=myresolver"
- "traefik.http.routers.nbitwebsite.tls.domains[0].main=nbit.ch"
- "traefik.http.routers.nbitwebsite.tls.domains[0].sans=www.nbit.ch"
networks:
default:
external: true