From fdfa782e91fe7b22ab8551dcff2a529dd2e43957 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Thu, 21 Nov 2024 03:23:56 -0300 Subject: [PATCH] 0.9.3.2-1: Update docker compose file --- docker-compose.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4fc2b12..18408c0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,17 @@ services: file-uploader: image: git.nadeko.net/fijxu/file-uploader-crystal:latest + # This program should never use that many memory and more than 50% of the CPU + mem_limit: 512MB + cpus: 0.5 # If you want to use a custom config file, you can mount it here. volumes: # - ./config/config.yml:/file-uploader-crystal/config/config.yml + - ./public:/file-uploader-crystal/public - ./files:/file-uploader-crystal/files - ./thumbnails:/file-uploader-crystal/thumbnails - - ./db.sqlite3:/file-uploader-crystal/db.sqlite3 + - ./db:/file-uploader-crystal/db - ./torexitnodes.txt:/file-uploader-crystal/torexitnodes.txt ports: - 127.0.0.1:8080:8080 +