Merge branch 'main' of https://gitea.ruelle.fr/admin/Docker-compose
This commit is contained in:
@@ -2,9 +2,6 @@ networks:
|
||||
tugtainer_agent:
|
||||
driver: bridge
|
||||
services:
|
||||
# Socket proxy is used by default,
|
||||
# but you can mount docker socket directly
|
||||
# and remove this service and DOCKER_HOST variable
|
||||
socket-proxy:
|
||||
image: lscr.io/linuxserver/socket-proxy:latest
|
||||
container_name: socket-proxy
|
||||
@@ -34,14 +31,9 @@ services:
|
||||
- socket-proxy
|
||||
container_name: tugtainer-agent
|
||||
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
|
||||
environment:
|
||||
# The list of available variables is in env.example
|
||||
AGENT_SECRET: Rackham59
|
||||
AGENT_SECRET: ${AGENT_SECRET}
|
||||
DOCKER_HOST: tcp://socket-proxy:2375
|
||||
read_only: true
|
||||
tmpfs:
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
|
||||
- name: Set .env file
|
||||
copy:
|
||||
content: "HOSTNAME={{ inventory_hostname }}"
|
||||
content: |
|
||||
HOSTNAME={{ inventory_hostname }}
|
||||
AGENT_SECRET={{ agent_secret | default('') }}
|
||||
dest: /opt/{{ service_name }}/.env
|
||||
|
||||
- name: Copy compose files
|
||||
|
||||
Reference in New Issue
Block a user