🚥 docs: fixed Traefik web layout (#2305)

Fixed Traefik config for broken web rending
This commit is contained in:
Ventz Petkov 2024-04-04 08:08:31 -04:00 committed by GitHub
parent e418edd3dc
commit 94950b6e8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,10 +25,10 @@ weight: 10
In your docker-compose.override.yml file, add the following configuration: In your docker-compose.override.yml file, add the following configuration:
```yaml ```yaml
version: '3' version: '3'
services: services:
api: api:
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
@ -42,7 +42,7 @@ weight: 10
volumes: volumes:
- ./librechat.yaml:/app/librechat.yaml - ./librechat.yaml:/app/librechat.yaml
traefik: traefik:
image: traefik:v2.9 image: traefik:v2.9
ports: ports:
- "80:80" - "80:80"
@ -63,12 +63,15 @@ traefik:
- "--certificatesresolvers.leresolver.acme.email=your@email.com" - "--certificatesresolvers.leresolver.acme.email=your@email.com"
- "--certificatesresolvers.leresolver.acme.storage=/letsencrypt/acme.json" - "--certificatesresolvers.leresolver.acme.storage=/letsencrypt/acme.json"
networks: # other configs here #
# NOTE: This needs to be at the bottom of your docker-compose.override.yml
networks:
web: web:
external: true external: true
librechat_default: librechat_default:
external: true external: true
``` ```
Replace `your@email.com` with your email address for Let's Encrypt certificate notifications. Replace `your@email.com` with your email address for Let's Encrypt certificate notifications.