From f9760cae07c9889e06e30fc3d2576174900134f5 Mon Sep 17 00:00:00 2001 From: Stef Date: Mon, 11 Aug 2025 01:31:06 +0200 Subject: [PATCH] Update volume mount and enable shell debug mode Changed the Docker volume mount to map ./data to /app/instance instead of /app/data in docker-compose.yaml. Also enabled shell debug mode in entrypoint.sh by adding the -x flag to 'set -e' for easier troubleshooting. --- docker-compose.yaml | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 176ffae..58fe3ad 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,4 +6,4 @@ services: ports: - "5000:80" # change if needed volumes: - - ./data:/app/data # maps host ./data to container /app/data + - ./data:/app/instance # maps host ./data to container /app/data diff --git a/entrypoint.sh b/entrypoint.sh index 28e6098..2cc48b6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/sh -set -e +set -ex echo "Running database migrations..." flask db upgrade