From 56993060ee5daa8e299c6e8262349d09f5acd981 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Wed, 5 Jul 2023 17:19:32 +0100 Subject: [PATCH] not sure why or how this fixed docker compose, but it did --- docker-compose.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6987bc3..1c3d373 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,8 @@ -version: "3.4" +version: "3" services: - sharex-php-uploader: + sharex-uploader: + container_name: ShareX-Uploader image: fascinated/sharex-php-uploader:latest # Uncomment the following line to build the image yourself # build: https://git.fascinated.cc/Fascinated/sharex-php-uploader.git @@ -10,16 +11,21 @@ services: # context: . restart: always environment: + - TZ=America/Los_Angeles - MAX_UPLOAD_SIZE=500M - UPLOAD_SECRETS=set me # You can add multiple secrets. Format: secret1,secret2,secret3 - UPLOAD_DIR=./ # The directory to store the uploaded files - USE_RANDOM_FILE_NAMES=true # If true, the uploaded files will be renamed to a random string - FILE_NAME_LENGTH=8 # The length of the random file name - SHOULD_CONVERT_TO_WEBP=true # If true, the uploaded files will be converted to webp - - WEBP_QUALITY=95 # The quality of the converted webp files (0-100 - higher is better) + - WEBP_QUALITY=95 # The quality of the converted webp files (0-100 -) - WEBP_THREADHOLD=1048576 # The minimum file size to convert to webp (1MB in bytes) ports: - - 80:80 + - "80:80/tcp" volumes: - # Where to store the uploaded files - - ./uploads:/var/www/html + - "/home/fascinated-cdn/uploads:/var/www/html:rw" + networks: + - bridge + +networks: + bridge: