feat(docker): traefik in docker-compose

This commit is contained in:
Pihkaal
2024-10-08 21:31:26 +02:00
parent 31ffd809b4
commit e231e1a984
2 changed files with 18 additions and 5 deletions

View File

@@ -1,5 +0,0 @@
services:
app:
build: .
ports:
- "3001:80"

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
services:
pihkaal-me:
build: .
environment:
- GH_PAT
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.pihkaal-me.rule=Host(`pihkaal.me`)"
- "traefik.http.routers.pihkaal-me.service=pihkaal-me"
- "traefik.http.services.pihkaal-me.loadbalancer.server.port=3000"
- "traefik.http.routers.pihkaal-me.tls=true"
- "traefik.http.routers.pihkaal-me.tls.certResolver=myresolver"
networks:
web:
external: true