forked from supabase-community/vercel-ai-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.63 KB
/
docker-compose.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.9'
services:
front:
image: bizgpt/bizgpt-frontend:1.0.0
build: .
command: sh -c "node .next/standalone/server.js"
volumes:
- .:/app
# ports:
# - 4443:${NODE_PORT}
container_name: front-${PROJECT_NAME}
restart: unless-stopped
labels:
- traefik.http.routers.front-${PROJECT_NAME}.rule=Host(`${SITE_URL}`)
- "traefik.http.routers.front-${PROJECT_NAME}.tls=true"
- "traefik.http.routers.front-${PROJECT_NAME}.tls.domains[0].main=${SITE_URL}"
- "traefik.http.routers.front-${PROJECT_NAME}.tls.certresolver=myresolver"
- "traefik.docker.network=local-traefik-network"
networks:
- local-traefik-network
# /_next/static
#PathPrefix(`/products/`
nginx:
image: nginx:1.23.0-alpine
restart: unless-stopped
volumes:
- ./nginx/templates/:/etc/nginx/templates/:ro
- ./.next/static:/_next/static
- /var/lib/letsencrypt:/var/lib/letsencrypt:ro
- /etc/letsencrypt:/etc/letsencrypt:ro
# ports:
# - 80:80
# - ${NGINX_PORT}:${NODE_PORT}
env_file:
- .env
depends_on:
- front
container_name: nginx-${PROJECT_NAME}
labels:
- "traefik.http.routers.nginx-${PROJECT_NAME}.rule=(Host(`${SITE_URL}`) && PathPrefix(`/_next/static`))"
- "traefik.http.routers.nginx-${PROJECT_NAME}.tls=true"
- "traefik.http.routers.nginx-${PROJECT_NAME}.tls.domains[0].main=${SITE_URL}"
- "traefik.http.routers.nginx-${PROJECT_NAME}.tls.certresolver=myresolver"
- "traefik.docker.network=local-traefik-network"
networks:
- local-traefik-network
networks:
local-traefik-network:
external: true