7 changed files with 68 additions and 13 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
FROM nginx |
||||
|
||||
COPY ./secret /secret |
||||
|
||||
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,11 @@
@@ -0,0 +1,11 @@
|
||||
# 如果没有显式声明 default server 则第一个 server 会被隐式的设为 default server |
||||
server { |
||||
# 自定义访问端口 |
||||
listen 80; |
||||
# 服务名称 |
||||
server_name git.kanglailab.com; |
||||
location / { |
||||
proxy_pass http://localhost:8066; |
||||
} |
||||
} |
||||
|
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
# PROJECT: 康来生物有限公司kicc(智慧冷链)分布式架构平台 |
||||
# VERSION: 1.0.0 |
||||
# Author: 康来生物科技有限公司-王翔 |
||||
|
||||
version: '3' |
||||
services: |
||||
nginx: |
||||
build: |
||||
context: . |
||||
restart: always |
||||
container_name: nginx |
||||
image: nginx |
||||
network_mode: 'host' |
||||
ports: |
||||
- 80:80 |
||||
- 443:443 |
Loading…
Reference in new issue