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:
19
ansible/compose.yml
Normal file
19
ansible/compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
# DEPLOY:: docker compose -p base --env-file ./ansible/env.cfg -f ./ansible/compose.yml up -d
|
||||
services:
|
||||
ansible:
|
||||
image: ${IMAGE_TAG}
|
||||
volumes:
|
||||
- ~/.ssh:/home/ansible-user/.ssh
|
||||
- ./ansible.cfg:/etc/ansible/ansible.cfg
|
||||
- ./ansible_hosts:/etc/ansible/hosts
|
||||
- ~/playbooks:/home/ansible-user/playbooks
|
||||
environment:
|
||||
- ANSIBLE_HOST_KEY_CHECKING=False
|
||||
tty: true
|
||||
stdin_open: true
|
||||
networks:
|
||||
- ansible-net
|
||||
|
||||
networks:
|
||||
ansible-net:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user