From b67f3ca7d91b761258977444bd5f8fe204c4102d Mon Sep 17 00:00:00 2001 From: anawalinski <48917724+levykraker@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:36:38 +0100 Subject: [PATCH] Added Docker Compose (#1372) * Added docker compose * Fixed typos in comments * Added healtchcheck and made changes after review. --- docker-compose.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ceb59ee --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +services: + tinyfilemanager: + build: . # Uncomment if you want to build locally instead of pulling +# image: tinyfilemanager/tinyfilemanager:latest ### If you want to run a Docker container on an image from Docker Hub, comment on the upper line 'build: .' + container_name: tinyfilemanager + restart: unless-stopped + ports: + - "8080:80" + volumes: + - ./data:/var/www/html/data ### You can change "./data:" to your path if you want to keep your data in a dedicated directory. + - ./config.php:/var/www/html/config.php ### Uncomment if you are using config.php + + environment: + TZ: UTC + + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost/"] + interval: 30s + timeout: 10s + retries: 3 \ No newline at end of file