forked from vercel/ai-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.nginx.mixed.yml
49 lines (46 loc) · 1.54 KB
/
docker-compose.nginx.mixed.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
version: '3.9'
services:
front:
image: bizgpt/bizgpt-frontend:2.0.0
build: .
command: sh -c "cd app && npm run start"
volumes:
- .:/app
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"
networks:
- local-traefik-network
nginx:
image: nginx:1.23.0-alpine
restart: unless-stopped
volumes:
- ./nginx/templates/default.conf.template.mixed:/etc/nginx/templates/default.conf.template: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"
networks:
- local-traefik-network
- network-1
networks:
local-traefik-network:
external: true
network-1:
external: false