From a5bbfe6165c195b9f6d18dd8d4828e00dd5de928 Mon Sep 17 00:00:00 2001 From: Sebastix Date: Sat, 21 Sep 2024 13:59:53 +0200 Subject: [PATCH] fix http: panic serving 100.114.176.46:58517: open public/index.html: no such file or directory --- docker-compose.arm64.yml | 6 +++--- docker-compose.tor.yml | 4 ++-- docker-compose.yml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docker-compose.arm64.yml b/docker-compose.arm64.yml index 41ed427..845c4e9 100644 --- a/docker-compose.arm64.yml +++ b/docker-compose.arm64.yml @@ -7,8 +7,8 @@ services: env_file: - .env volumes: - - "./db:/app/db" # only change the left side before the colon - - "./templates/index.html:/app/templates/index.html" # only change the left side before the colon - - "./templates/static:/app/templates/static" # only change the left side before the colon + - "./db:/app/db" + - "./templates/index.html:${INDEX_PATH}" + - "./templates/static:${STATIC_PATH}" ports: - "3334:3334" diff --git a/docker-compose.tor.yml b/docker-compose.tor.yml index 9f03092..c9386cb 100644 --- a/docker-compose.tor.yml +++ b/docker-compose.tor.yml @@ -8,8 +8,8 @@ services: - .env volumes: - "./db:/app/db" - - "./templates/index.html:/app/templates/index.html" - - "./templates/static:/app/templates/static" + - "./templates/index.html:${INDEX_PATH}" + - "./templates/static:${STATIC_PATH}" ports: - "3334" diff --git a/docker-compose.yml b/docker-compose.yml index 13ca973..f9a8e74 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,8 +7,8 @@ services: env_file: - .env volumes: - - "./db:/app/db" # only change the left side before the colon - - "./templates/index.html:/app/templates/index.html" # only change the left side before the colon - - "./templates/static:/app/templates/static" # only change the left side before the colon + - "./db:/app/db" + - "./templates/index.html:${INDEX_PATH}" + - "./templates/static:${STATIC_PATH}" ports: - "3334:3334"