forked from DevOps/deploy.stack
refactor: 统一环境变量命名并整理配置文件格式
1. 将所有环境变量中的Volumes_PATH统一改为Volumes_Path 2. 把旧的.env.cnf文件重命名为.env.cfg 3. 将compose.yaml文件统一替换为stack.yml/compose.yml格式 4. 删除冗余的旧版compose配置文件
This commit is contained in:
20
hub-registry/stack.yml
Normal file
20
hub-registry/stack.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# run:: docker compose -p hub-registry --env-file ./hub-registry/env.cfg -f ./hub-registry/stack.yml up -d
|
||||
|
||||
services:
|
||||
registry:
|
||||
image: ${IMAGE_TAG}
|
||||
volumes:
|
||||
- data:/var/lib/registry
|
||||
ports:
|
||||
- '3500:3500'
|
||||
container_name: hub-registry
|
||||
restart: unless-stopped
|
||||
|
||||
registy-ui:
|
||||
image: ${UI_IMAGE_TAG}
|
||||
container_name: hub-registry-ui
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- REGISTRY_DOMAIN=hub.tp229.com:3500
|
||||
- REGISTRY_HOST=192.168.0.7:3500
|
||||
- REGISTRY_STORAGE_DELETE_ENABLED=true
|
||||
Reference in New Issue
Block a user