Initial commit: Infraestructura OgnirNAS estabilizada
This commit is contained in:
11
init-net/docker-compose.yml
Executable file
11
init-net/docker-compose.yml
Executable file
@@ -0,0 +1,11 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
init-net:
|
||||
image: alpine:latest
|
||||
container_name: init-macvlan-shim
|
||||
network_mode: host # CRÍTICO: Para ver las interfaces del NAS
|
||||
privileged: true # CRÍTICO: Para poder crear interfaces
|
||||
restart: "no" # Solo queremos que corra al arrancar el motor Docker
|
||||
volumes:
|
||||
- /volume1/docker/.bin/macvlan-shim.sh:/script.sh:ro
|
||||
entrypoint: ["/bin/sh", "-c", "apk add --no-cache iproute2 > /dev/null 2>&1 && /bin/sh /script.sh"]
|
||||
Reference in New Issue
Block a user