compose: traefik ağına bağlan, kolaytercih.com router label'ları ekle
All checks were successful
Deploy / deploy (push) Successful in 12s
All checks were successful
Deploy / deploy (push) Successful in 12s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user