签入版本
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
version: '3.7'
|
||||
|
||||
# 应用服务
|
||||
services:
|
||||
# 后端服务
|
||||
xiaomayi-elevue:
|
||||
# 镜像
|
||||
image: 192.168.10.102:8001/xiaomayi/xiaomayi-elevue:${VERSION:-latest}
|
||||
# 容器名
|
||||
container_name: xiaomayi-elevue
|
||||
# 重启方式
|
||||
restart: always
|
||||
# 网络模式
|
||||
network_mode: host
|
||||
# 端口映射
|
||||
ports:
|
||||
- 8081:8081
|
||||
volumes:
|
||||
- /etc/hosts:/etc/hosts:ro
|
||||
- $PWD/upload:/opt/apps/upload
|
||||
# 发布
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2'
|
||||
memory: 1.5G
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 500M
|
||||
# 前端服务
|
||||
xiaomayi-elevue-web:
|
||||
# 镜像
|
||||
image: 192.168.10.102:8001/xiaomayi/xiaomayi-elevue-web:${VERSION:-latest}
|
||||
# 容器名
|
||||
container_name: xiaomayi-elevue-web
|
||||
# 重启方式
|
||||
restart: always
|
||||
# 网络模式
|
||||
network_mode: host
|
||||
# 端口映射
|
||||
ports:
|
||||
- 8082:8082
|
||||
volumes:
|
||||
- /etc/hosts:/etc/hosts:ro
|
||||
- $PWD/upload:/opt/apps/upload
|
||||
# 发布
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2'
|
||||
memory: 1.5G
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 500M
|
||||
|
||||
|
||||
Reference in New Issue
Block a user