-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
32 lines (31 loc) · 1.21 KB
/
Copy pathcompose.yml
File metadata and controls
32 lines (31 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
socket-proxy:
image: lscr.io/linuxserver/socket-proxy:latest
container_name: socket-proxy
environment:
- CONTAINERS=1 # /containers/*
- NETWORKS=1 # /networks/*
- EVENTS=1 # /events
- VERSION=1 # /version
- POST=1 # autoriser les POST (connect/disconnect)
- TZ=Europe/Paris
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped
network-watcher:
image: ghcr.io/cerede2000/docker-network-autoattach:latest
container_name: network-watcher
environment:
- DOCKER_HOST=tcp://socket-proxy:2375
# Options :
- NETWORK_WATCHER_PREFIX=network-watcher
- NETWORK_WATCHER_PRUNE_UNUSED_NETWORKS=true
- NETWORK_WATCHER_NETWORK_DRIVER=bridge
- INITIAL_ATTACH=true # attache au démarrage du watcher
- INITIAL_RUNNING_ONLY=false # true = uniquement conteneurs "running"
- AUTO_DISCONNECT=true # détache si false ou label supprimé
- RESCAN_SECONDS=30 # 0 pour désactiver le rescan périodique
- DEBUG=false # true pour spammer les logs
depends_on:
- socket-proxy
restart: unless-stopped