Files
ansible-worker/docker-compose.yml-backup
ansible user 110301f862 first commit
2025-10-22 14:11:49 +02:00

22 lines
680 B
Plaintext

services:
ansible-worker:
build:
context: .
dockerfile: Dockerfile
image: ansible-worker:latest
container_name: ansible-worker
working_dir: /opt/containers/ansible-worker/app
entrypoint: ["/usr/local/bin/ansible-entrypoint"]
command: ["sleep", "infinity"]
restart: unless-stopped
tty: true
stdin_open: true
environment:
ANSIBLE_CONFIG: /opt/containers/ansible-worker/app/ansible.cfg
ANSIBLE_SSH_ARGS: "-o PubkeyAuthentication=no"
# bind-mount only DATA; files/ are baked into the image
volumes:
- ./data:/opt/containers/ansible-worker/data:rw
- ./files:/opt/containers/ansible-worker/files:rw