From fd0bc83eae9a9a66da57eed39ac20887eeea9e9f Mon Sep 17 00:00:00 2001 From: rednafi Date: Wed, 16 Oct 2024 00:13:40 +0200 Subject: [PATCH] Use mount syntax in docker compose --- docker-compose.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 85b52ba..57ba67a 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,9 @@ services: labels: - fnano volumes: - - .:/code + - type: bind + source: . + target: /code entrypoint: - /bin/sh - -c @@ -30,10 +32,15 @@ services: - "80:80" - "443:443" volumes: - - ./Caddyfile:/etc/caddy/Caddyfile - - caddy_data:/data - - caddy_config:/config - + - type: bind + source: ./Caddyfile + target: /etc/caddy/Caddyfile + - type: volume + source: caddy_data + target: /data + - type: volume + source: caddy_config + target: /config depends_on: - fnano