Compare commits

..

4 Commits

Author SHA1 Message Date
Semaphore
0b86b1078c feat: ajout GLPI Agent docker compose 2026-02-17 15:11:39 +00:00
fd13ce1d1f Actualiser deploy.yml 2026-02-17 10:56:19 +00:00
Semaphore
78f432b08c Merge branch 'main' of https://gitea.ruelle.fr/admin/Docker-compose 2026-02-17 10:54:03 +00:00
Semaphore
256ae9c0d3 Add stop before deploy 2026-02-17 10:53:39 +00:00
3 changed files with 35 additions and 6 deletions

0
FETCH_HEAD Normal file
View File

View File

@@ -14,17 +14,16 @@
AGENT_SECRET={{ agent_secret | default('') }} AGENT_SECRET={{ agent_secret | default('') }}
dest: /opt/{{ service_name }}/.env dest: /opt/{{ service_name }}/.env
- name: Force remove existing containers
shell: |
docker stop socket-proxy tugtainer-agent 2>/dev/null || true
docker rm socket-proxy tugtainer-agent 2>/dev/null || true
- name: Copy compose files - name: Copy compose files
copy: copy:
src: "{{ service_name }}/" src: "{{ service_name }}/"
dest: /opt/{{ service_name }}/ dest: /opt/{{ service_name }}/
- name: Stop existing containers
community.docker.docker_compose_v2:
project_src: /opt/{{ service_name }}
state: absent
ignore_errors: yes
- name: Deploy stack - name: Deploy stack
community.docker.docker_compose_v2: community.docker.docker_compose_v2:
project_src: /opt/{{ service_name }} project_src: /opt/{{ service_name }}

View File

@@ -0,0 +1,30 @@
---
services:
glpi-agent:
image: rdrit/glpi-agent:latest
container_name: glpi-agent
restart: unless-stopped
network_mode: host
environment:
- GLPI_SERVER=http://192.168.123.22:8082
- GLPI_SERVER_NO_SSL_CHECK=true
- GLPI_TAG=${HOSTNAME}
- GLPI_HTTPD=1
- GLPI_HTTPD_PORT=62354
- GLPI_HTTPD_TRUST=192.168.123.0/24
- GLPI_LAZY=0
- GLPI_DELAYTIME=3600
volumes:
- /etc:/hostfs/etc:ro
- /proc:/hostfs/proc:ro
- /sys:/hostfs/sys:ro
- /var/lib/dpkg:/hostfs/var/lib/dpkg:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:62354"]
interval: 60s
timeout: 10s
retries: 3
start_period: 30s