forked from DevOps/deploy.stack
1. 将所有环境变量中的Volumes_PATH统一改为Volumes_Path 2. 把旧的.env.cnf文件重命名为.env.cfg 3. 将compose.yaml文件统一替换为stack.yml/compose.yml格式 4. 删除冗余的旧版compose配置文件
19 lines
500 B
YAML
19 lines
500 B
YAML
# 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 |