compose: traefik ağına bağlan, kolaytercih.com router label'ları ekle
All checks were successful
Deploy / deploy (push) Successful in 12s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
bilalgursen
2026-07-26 01:30:21 +03:00
parent 6d8699005c
commit 486f99c897

View File

@@ -3,14 +3,25 @@ services:
build: . build: .
container_name: kolaytercih container_name: kolaytercih
restart: unless-stopped restart: unless-stopped
ports:
- "3000:3000"
volumes: volumes:
- app-data:/app/data - app-data:/app/data
env_file: env_file:
- .env.production - .env.production
environment: environment:
- APP_DB_URL=file:/app/data/app.db - APP_DB_URL=file:/app/data/app.db
networks:
- traefik
labels:
- traefik.enable=true
- traefik.docker.network=traefik
- traefik.http.routers.kolaytercih.rule=Host(`kolaytercih.com`)
- traefik.http.routers.kolaytercih.entrypoints=websecure
- traefik.http.routers.kolaytercih.tls.certresolver=letsencrypt
- traefik.http.services.kolaytercih.loadbalancer.server.port=3000
networks:
traefik:
external: true
volumes: volumes:
app-data: app-data: