首页
关于
留言
友联
更多
壁纸
统计
Search
1
VUE codemirror插件 设置回显对象
54 阅读
2
js前端密码校验
53 阅读
3
HTML媒体查询Demo
48 阅读
4
Vue 和element的实现table表格数据的模糊匹配搜索
36 阅读
5
python 钉钉机器人推送消息
29 阅读
默认分类
前端
后端
其他
登录
Search
标签搜索
python
React
Django
爬虫
css
2c
累计撰写
19
篇文章
累计收到
12
条评论
首页
栏目
默认分类
前端
后端
其他
页面
关于
留言
友联
壁纸
统计
搜索到
1
篇与
的结果
2022-10-25
jenkins docker 部署 前端
搭建好Jenkins 下载插件 Publish Over SSH Node Docker文件格式 DockerfileFROM nginx:1.17.0-alpine LABEL maintainer = 1054711110@qq.com COPY nginx/nginx.conf /etc/nginx/nginx.conf COPY nginx/default.conf /etc/nginx/conf.d COPY src /usr/share/nginx/htmldocker-compose.yamlversion: '3' services: # 前端 service-front: hostname: service-front container_name: service-front image: registry.cn-hangzhou.aliyuncs.com/lazycat520/moka-frontend:V-NUMBER restart: always ports: - "81:80" volumes: - /etc/timezone:/etc/timezone - /etc/localtime:/etc/localtimenginx/default.confserver { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location / { root /usr/share/nginx/html; index index.html index.htm; # try_files $uri $uri/ /index.html; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} }nginx/nginx.confuser nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; gzip on; gzip_min_length 1k; gzip_buffers 4 16k; #gzip_http_version 1.0; gzip_comp_level 8; gzip_types application/json application/octet-stream text/plain application/javascript application/css text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png; gzip_vary off; gzip_disable "MSIE [1-6]\."; include /etc/nginx/conf.d/*.conf; }jenkins 节点配置 阿里镜像 registry.cn-hangzhou.aliyuncs.com/lazycat520/moka-frontend:V${BUILD_NUMBER}sed -i 's/V-NUMBER/V${BUILD_NUMBER}/g' docker-compose.yaml && docker-compose up -d
2022年10月25日
14 阅读
0 评论
0 点赞