-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
50 lines (48 loc) · 1.75 KB
/
compose.yml
File metadata and controls
50 lines (48 loc) · 1.75 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.9"
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
env_file: .env
# ports:
# - "3000:3000" # optional; useful for debugging direct calls
restart: unless-stopped
networks:
- default
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.arcadia-backend.rule=Host(`${DOMAIN:-localhost}`) && PathPrefix(`${BASE_PATH:-}/savestory`, `${BASE_PATH:-}/getstory`, `${BASE_PATH:-}/healthcheck`, `${BASE_PATH:-}/promptstreamingws`)"
- "traefik.http.routers.arcadia-backend.entrypoints=websecure"
- "traefik.http.routers.arcadia-backend.tls=true"
- "traefik.http.routers.arcadia-backend.middlewares=arcadia-backend-stripprefix"
- "traefik.http.middlewares.arcadia-backend-stripprefix.stripprefix.prefixes=${BASE_PATH:-}"
- "traefik.http.routers.arcadia-backend.priority=2"
- "traefik.http.services.arcadia-backend.loadbalancer.server.port=3000"
- "traefik.docker.network=traefik"
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
args:
BASE_PATH: ${BASE_PATH:-/}
depends_on:
- backend
# ports:
# - "8080:80"
restart: unless-stopped
networks:
- default
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.arcadia-frontend.rule=Host(`${DOMAIN:-localhost}`) && PathPrefix(`${BASE_PATH:-}`)"
- "traefik.http.routers.arcadia-frontend.entrypoints=websecure"
- "traefik.http.routers.arcadia-frontend.tls=true"
- "traefik.http.routers.arcadia-frontend.priority=1"
- "traefik.http.services.arcadia-frontend.loadbalancer.server.port=80"
- "traefik.docker.network=traefik"
networks:
traefik:
external: true