Add traefik

This commit is contained in:
Galuh Sahid 2023-12-27 23:28:24 +01:00
parent c383f93016
commit 61f34b8d60
1 changed files with 5 additions and 0 deletions

View File

@ -9,3 +9,8 @@ services:
ports: ports:
- "100.104.163.2:3000:3000" - "100.104.163.2:3000:3000"
command: ["npx", "quartz", "build", "--serve", "--port", "3000"] command: ["npx", "quartz", "build", "--serve", "--port", "3000"]
labels:
- "traefik.enable=true"
- "traefik.http.routers.mywebsite.rule=Host(`notes.velouria.dev`)"
- "traefik.http.routers.mywebsite.entrypoints=websecure"
- "traefik.http.routers.mywebsite.tls.certresolver=myresolver"