3 changed files with 48 additions and 0 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
FROM nginx |
||||
|
||||
COPY ./dist /data |
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf |
||||
|
||||
ADD default.conf /etc/nginx/conf.d/ |
||||
|
||||
RUN /bin/bash -c 'echo init ok' |
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
server { |
||||
# 自定义访问端口 |
||||
listen 3002; |
||||
client_max_body_size 100M; |
||||
|
||||
# 服务名称 |
||||
server_name localhost; |
||||
|
||||
# 代理访问根地址 |
||||
root /data; |
||||
|
||||
#设置转发请求头参数 |
||||
proxy_connect_timeout 15s; |
||||
proxy_send_timeout 15s; |
||||
proxy_read_timeout 15s; |
||||
proxy_set_header Host $http_host; |
||||
proxy_set_header X-Real-IP $remote_addr; |
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
||||
|
||||
# 代理访问 |
||||
location / { |
||||
try_files $uri $uri/ /index.html; |
||||
error_page 405 =200 http://$host$request_uri; |
||||
} |
||||
} |
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
# PROJECT: 康来生物有限公司kicc(智慧冷链)分布式架构平台 |
||||
# VERSION: 1.0.0 |
||||
# Author: 康来生物科技有限公司-王翔 |
||||
|
||||
version: '3' |
||||
services: |
||||
kicc-workflow-design: |
||||
build: |
||||
context: . |
||||
restart: always |
||||
container_name: kicc-workflow-design |
||||
image: kicc-workflow-design |
||||
ports: |
||||
- 3002:3002 |
Loading…
Reference in new issue