From 8208dedb190fd7ef216a672d2ab790765840361c Mon Sep 17 00:00:00 2001 From: Florian Schroen Date: Thu, 15 Jun 2023 12:11:46 +0200 Subject: [PATCH] docker-compose.yml: fix volume mount options `z` is valid only for bindmounts When using with volumes a warning for each volume appears: netbox$ docker compose up [+] Building 0.0s (0/0) WARN[0000] mount of type `volume` should not define `bind` option WARN[0000] mount of type `volume` should not define `bind` option WARN[0000] mount of type `volume` should not define `bind` option This may appear only when using a docker-compose.override.yml --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 049268c..a0076b7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,9 +15,9 @@ services: test: "curl -f http://localhost:8080/api/ || exit 1" volumes: - ./configuration:/etc/netbox/config:z,ro - - netbox-media-files:/opt/netbox/netbox/media:z,rw - - netbox-reports-files:/opt/netbox/netbox/reports:z,rw - - netbox-scripts-files:/opt/netbox/netbox/scripts:z,rw + - netbox-media-files:/opt/netbox/netbox/media:rw + - netbox-reports-files:/opt/netbox/netbox/reports:rw + - netbox-scripts-files:/opt/netbox/netbox/scripts:rw netbox-worker: <<: *netbox depends_on: