update Nginx configuration to set up SSL with Traefik routing and adjust port mappings
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user