update Nginx configuration to set up SSL with Traefik routing and adjust port mappings

This commit is contained in:
2025-08-06 01:38:45 +03:00
parent c89810a730
commit 6921374d9f
3 changed files with 129 additions and 53 deletions

View File

@ -19,8 +19,7 @@ services:
nginx:
image: nginx:alpine-slim
ports:
- "80:80"
- "443:443"
- "4434:443"
depends_on:
- back
- front
@ -40,6 +39,12 @@ services:
restart: unless-stopped
networks:
- appnet
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.crm.rule=Host(`crm.logidex.ru`)"
- "traefik.http.routers.crm.entrypoints=websecure"
- "traefik.http.routers.crm.tls=true"
certbot:
image: certbot/certbot:latest
volumes: