update
init
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#版本
|
||||
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:
|
||||
|
||||
cms:
|
||||
<<: *service_tmp
|
||||
container_name: cms_${PROFILE_NAME}
|
||||
hostname: cms_${PROFILE_NAME}
|
||||
image: ${REGISTER_HOST}/${REGISTER_REPO}/${PROJECT_NAME}_cms:${IMAGE_TAG_LATEST}
|
||||
|
||||
im:
|
||||
<<: *service_tmp
|
||||
container_name: im_${PROFILE_NAME}
|
||||
hostname: im_${PROFILE_NAME}
|
||||
image: ${REGISTER_HOST}/${REGISTER_REPO}/${PROJECT_NAME}_im:${IMAGE_TAG_LATEST}
|
||||
|
||||
mobile:
|
||||
<<: *service_tmp
|
||||
container_name: mobile_${PROFILE_NAME}
|
||||
hostname: mobile_${PROFILE_NAME}
|
||||
image: ${REGISTER_HOST}/${REGISTER_REPO}/${PROJECT_NAME}_mobile:${IMAGE_TAG_LATEST}
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: ${NETWORK_NAME}
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user