Reintroduce docker network

This commit is contained in:
Colin Hebert
2023-11-04 18:01:39 +11:00
parent 7c2dd5611a
commit c8fd609ce8

View File

@@ -1,16 +1,36 @@
name: bootstrap
services:
docker:
hostname: docker
image: alpine/socat
command: tcp-listen:2375,fork,reuseaddr unix-connect:/var/run/docker.sock
networks:
- docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
labels:
nas-compose.boostrap: true
portainer:
hostname: portainer
image: portainer/portainer-ce
command: >
--host tcp://docker:2375
--hide-label nas-compose.boostrap=true
--admin-password-file /run/secrets/portainer_password
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
networks:
- docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - /var/run/docker.sock:/var/run/docker.sock
- /var/packages/ContainerManager/var/docker/volumes/:/var/lib/docker/volumes/
- ${NASCOMPOSE_SERVICES?}/bootstrap/volumes/portainer_data/:/data/
# Secrets
- ${NASCOMPOSE_SERVICES?}/bootstrap/secrets/portainer_password:/run/secrets/portainer_password:ro
restart: unless-stopped
networks:
docker:
external: true