更新自动化脚本

This commit is contained in:
SkyJourney
2023-12-19 05:51:36 +08:00
parent 6c5e3e8f06
commit 6c2510147f
3 changed files with 47 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
# 选择更小体积的基础镜像
FROM nginx:stable-alpine
COPY ./default.conf /etc/nginx/conf.d
COPY ./dist /usr/share/nginx/html
+12
View File
@@ -0,0 +1,12 @@
version: "3.9"
services:
ms-service:
build:
dockerfile: Dockerfile
context: .
tags:
- "${IMAGE_NAME}:${IMAGE_TAG_LATEST}"
- "${IMAGE_NAME}:${IMAGE_TAG_COMMIT}"
- "${REGISTER_HOST}/${REGISTER_REPO}/${IMAGE_NAME}:${IMAGE_TAG_LATEST}"
- "${REGISTER_HOST}/${REGISTER_REPO}/${IMAGE_NAME}:${IMAGE_TAG_COMMIT}"
+31
View File
@@ -0,0 +1,31 @@
#版本
version: '3.9'
x-template:
service: &service_tmp
restart: always
tty: true
deploy:
resources:
limits:
cpus: '2'
memory: 1G
reservations:
cpus: '0.5'
memory: 256M
extra_hosts:
- "yg.dt.io:192.168.1.5"
#服务配置
services:
emergency-screen:
<<: *service_tmp
container_name: es_${PROFILE_NAME}
hostname: es_${PROFILE_NAME}
image: ${IMAGE_NAME}:${IMAGE_TAG_LATEST}
networks:
default:
name: ${NETWORK_NAME}
external: true