-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.prod.yaml
More file actions
32 lines (29 loc) · 1.06 KB
/
Copy pathdocker-compose.prod.yaml
File metadata and controls
32 lines (29 loc) · 1.06 KB
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
version: "3"
services:
emilytarot:
image: emilytarot:latest
networks:
- traefik-public
environment:
OPENAI_API_KEY: "${OPENAI_API_KEY?Variable not set}"
SESSION_DIR: "/app/tarotSessions"
volumes:
- tarotSessions:/app/tarotSessions
deploy:
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.emilytarot-http.rule=Host(`${DOMAIN?Variable not set}`)
- traefik.http.routers.emilytarot-http.entrypoints=http
- traefik.http.routers.emilytarot-http.middlewares=https-redirect
- traefik.http.routers.emilytarot-https.rule=Host(`${DOMAIN?Variable not set}`)
- traefik.http.routers.emilytarot-https.entrypoints=https
- traefik.http.routers.emilytarot-https.tls=true
- traefik.http.routers.emilytarot-https.tls.certresolver=le
- traefik.http.services.emilytarot.loadbalancer.server.port=8501
volumes:
tarotSessions: {}
networks:
traefik-public:
external: true