This commit is contained in:
Semaphore
2026-02-17 10:49:59 +00:00
2 changed files with 49 additions and 55 deletions

View File

@@ -2,9 +2,6 @@ networks:
tugtainer_agent: tugtainer_agent:
driver: bridge driver: bridge
services: services:
# Socket proxy is used by default,
# but you can mount docker socket directly
# and remove this service and DOCKER_HOST variable
socket-proxy: socket-proxy:
image: lscr.io/linuxserver/socket-proxy:latest image: lscr.io/linuxserver/socket-proxy:latest
container_name: socket-proxy container_name: socket-proxy
@@ -34,14 +31,9 @@ services:
- socket-proxy - socket-proxy
container_name: tugtainer-agent container_name: tugtainer-agent
image: quenary/tugtainer-agent:latest image: quenary/tugtainer-agent:latest
# volumes:
# You can uncomment this to mount socket directly,
# and remove socket-proxy service and DOCKER_HOST variable
# - /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped restart: unless-stopped
environment: environment:
# The list of available variables is in env.example AGENT_SECRET: ${AGENT_SECRET}
AGENT_SECRET: Rackham59
DOCKER_HOST: tcp://socket-proxy:2375 DOCKER_HOST: tcp://socket-proxy:2375
read_only: true read_only: true
tmpfs: tmpfs:

View File

@@ -9,7 +9,9 @@
- name: Set .env file - name: Set .env file
copy: copy:
content: "HOSTNAME={{ inventory_hostname }}" content: |
HOSTNAME={{ inventory_hostname }}
AGENT_SECRET={{ agent_secret | default('') }}
dest: /opt/{{ service_name }}/.env dest: /opt/{{ service_name }}/.env
- name: Copy compose files - name: Copy compose files