-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-openwebui-ssl.yml
34 lines (32 loc) · 1.19 KB
/
docker-compose-openwebui-ssl.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3.8'
services:
traefik:
image: traefik:v2.10
container_name: traefik
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.file.filename=/traefik_dynamic_conf.yml"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik_dynamic_conf.yml:/traefik_dynamic_conf.yml"
- "./certs/open-webui.localhost.pem:/open-webui.localhost.pem"
- "./certs/open-webui.localhost-key.pem:/open-webui.localhost-key.pem"
restart: always
networks:
- web
open-webui:
labels:
- "traefik.enable=true"
- "traefik.http.routers.open-webui.rule=Host(`open-webui.localhost`)"
- "traefik.http.routers.open-webui.entrypoints=websecure"
- "traefik.http.routers.open-webui.tls=true"
- "traefik.http.services.open-webui.loadbalancer.server.port=8080"
volumes:
- "./certs/open-webui.localhost.pem:/etc/ssl/certs/open-webui.localhost.crt:ro"
- "./certs/open-webui.localhost-key.pem:/etc/ssl/private/open-webui.localhost.key:ro"