配置好服务器网络配置
增加 docker 部署配置
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
services:
|
||||
docreview:
|
||||
build: .
|
||||
container_name: docreview-app
|
||||
ports:
|
||||
- "51703:51703" # 主服务
|
||||
- "51704:51704" # 潮州客户端
|
||||
- "51705:51705" # 揭阳客户端
|
||||
- "51706:51706" # 云浮客户端
|
||||
- "51707:51707" # 梅州客户端
|
||||
- "51708:51708" # 省局客户端
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
volumes:
|
||||
- .:/app # 挂载整个项目目录
|
||||
- /app/node_modules # 排除node_modules,使用容器内的
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- docreview-network
|
||||
depends_on:
|
||||
- nginx
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: docreview-nginx
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d/:ro
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- docreview-network
|
||||
|
||||
networks:
|
||||
docreview-network:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user