Mount volumes directly

This commit is contained in:
Colin Hebert
2023-02-20 19:24:07 +11:00
parent db63d597b4
commit 000fd298f6
16 changed files with 33 additions and 231 deletions

View File

@@ -24,7 +24,7 @@ services:
networks:
- docker
volumes:
- portainer_data:/data/
- ${NASCOMPOSE_SERVICES?}/bootstrap/volumes/portainer_data/:/data/
secrets:
- portainer_password
depends_on:
@@ -39,15 +39,6 @@ networks:
labels:
nas-compose.boostrap: true
volumes:
portainer_data:
driver_opts:
type: none
o: bind
device: ${NASCOMPOSE_SERVICES?}/bootstrap/volumes/portainer_data/
labels:
nas-compose.boostrap: true
secrets:
portainer_password:
file: ${NASCOMPOSE_SERVICES?}/bootstrap/secrets/portainer_password