提交各组件部署Ansible剧本初版

This commit is contained in:
qidaijie
2024-01-18 15:35:33 +08:00
parent f0bd05d565
commit 0cc392df5c
262 changed files with 15927 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
version: '3'
services:
redis:
image: {{ image_name }}:{{ image_tag }}
restart: always
container_name: {{ container_name }}
volumes:
- {{ deploy_dir }}/{{ container_name }}/conf/redis.conf:/redis.conf
- {{ deploy_dir }}/{{ container_name }}/data:/data
command: redis-server /redis.conf
network_mode: "host"