diff --git a/Tugtainer/docker-compose.yml b/Tugtainer/docker-compose.yml new file mode 100644 index 0000000..326145a --- /dev/null +++ b/Tugtainer/docker-compose.yml @@ -0,0 +1,54 @@ +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 + environment: + CONTAINERS: 1 + EVENTS: 1 + IMAGES: 1 + INFO: 1 + LOG_LEVEL: warning + PING: 1 + NETWORKS: 1 + POST: 1 + TZ: Europe/Paris + VERSION: 1 + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + restart: unless-stopped + read_only: true + tmpfs: + - /run + networks: + - tugtainer_agent + labels: + dev.quenary.tugtainer.protected: True + agent: + depends_on: + - 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 + DOCKER_HOST: tcp://socket-proxy:2375 + read_only: true + tmpfs: + - /run + networks: + - tugtainer_agent + ports: + - '9413:8001' + labels: + dev.quenary.tugtainer.protected: True \ No newline at end of file diff --git a/monitoring/docker-compose.yml b/monitoring/docker-compose.yml new file mode 100644 index 0000000..2dc0b9f --- /dev/null +++ b/monitoring/docker-compose.yml @@ -0,0 +1,24 @@ +services: + node_exporter: + image: prom/node-exporter:latest + container_name: node_exporter + restart: unless-stopped + ports: + - "9100:9100" + volumes: + - /:/host:ro,rslave + command: + - '--path.rootfs=/host' + cadvisor: + image: gcr.io/cadvisor/cadvisor:latest + container_name: cadvisor + restart: unless-stopped + ports: + - "8080:8080" + volumes: + - /:/rootfs:ro + - /var/run:/var/run:ro + - /sys:/sys:ro + - /var/lib/docker/:/var/lib/docker:ro + - /dev/disk/:/dev/disk:ro + privileged: true \ No newline at end of file