feat: improved install task
This commit is contained in:
parent
3b80e81c3e
commit
c469de4783
1 changed files with 25 additions and 3 deletions
|
|
@ -14,19 +14,41 @@
|
||||||
# run semaphore
|
# run semaphore
|
||||||
- name: "run semaphore"
|
- name: "run semaphore"
|
||||||
community.docker.docker_container:
|
community.docker.docker_container:
|
||||||
|
|
||||||
|
# container_default_behavior
|
||||||
|
auto_remove: "no"
|
||||||
container_default_behavior: "no_defaults"
|
container_default_behavior: "no_defaults"
|
||||||
detach: "yes"
|
detach: "yes"
|
||||||
|
init: "no"
|
||||||
|
interactive: "no"
|
||||||
|
log_driver: "json-file"
|
||||||
|
log_options:
|
||||||
|
max-size: "5m"
|
||||||
|
max-file: "3"
|
||||||
|
memory: "0"
|
||||||
|
paused: "no"
|
||||||
|
privileged: "no"
|
||||||
pull: "always"
|
pull: "always"
|
||||||
|
read_only: "no"
|
||||||
state: "started"
|
state: "started"
|
||||||
name: "semaphore"
|
tty: "no"
|
||||||
|
|
||||||
|
# semaphore
|
||||||
|
name: "semaphore-app"
|
||||||
image: "docker.io/semaphoreui/semaphore:v2.16.18"
|
image: "docker.io/semaphoreui/semaphore:v2.16.18"
|
||||||
|
image_name_mismatch: "recreate"
|
||||||
restart_policy: "unless-stopped"
|
restart_policy: "unless-stopped"
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
networks:
|
||||||
|
- name: "semaphore"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- "/mnt/semaphore/data:/var/lib/semaphore"
|
- "/mnt/semaphore/data:/var/lib/semaphore"
|
||||||
- "/mnt/semaphore/tmp:/tmp/semaphore"
|
- "/mnt/semaphore/tmp:/tmp/semaphore"
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- "3000:3000/tcp"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
||||||
# ansible
|
# ansible
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue