Compare commits

...

2 Commits

Author SHA1 Message Date
56993060ee not sure why or how this fixed docker compose, but it did
All checks were successful
/ docker (push) Successful in 1m47s
2023-07-05 17:19:32 +01:00
6d950baa69 add auto clean 2023-07-05 17:19:18 +01:00
2 changed files with 15 additions and 6 deletions

@ -5,6 +5,9 @@ RUN apt update
RUN DEBIAN_FRONTEND=noninteractive \ RUN DEBIAN_FRONTEND=noninteractive \
apt install nginx php8.1 php8.1-fpm php8.1-gd -y apt install nginx php8.1 php8.1-fpm php8.1-gd -y
# Clean up
RUN apt clean
# Set up nginx # Set up nginx
COPY ./docker/nginx.conf /etc/nginx/nginx.conf COPY ./docker/nginx.conf /etc/nginx/nginx.conf

@ -1,7 +1,8 @@
version: "3.4" version: "3"
services: services:
sharex-php-uploader: sharex-uploader:
container_name: ShareX-Uploader
image: fascinated/sharex-php-uploader:latest image: fascinated/sharex-php-uploader:latest
# Uncomment the following line to build the image yourself # Uncomment the following line to build the image yourself
# build: https://git.fascinated.cc/Fascinated/sharex-php-uploader.git # build: https://git.fascinated.cc/Fascinated/sharex-php-uploader.git
@ -10,16 +11,21 @@ services:
# context: . # context: .
restart: always restart: always
environment: environment:
- TZ=America/Los_Angeles
- MAX_UPLOAD_SIZE=500M - MAX_UPLOAD_SIZE=500M
- UPLOAD_SECRETS=set me # You can add multiple secrets. Format: secret1,secret2,secret3 - UPLOAD_SECRETS=set me # You can add multiple secrets. Format: secret1,secret2,secret3
- UPLOAD_DIR=./ # The directory to store the uploaded files - 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 - 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 - 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 - 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) - WEBP_THREADHOLD=1048576 # The minimum file size to convert to webp (1MB in bytes)
ports: ports:
- 80:80 - "80:80/tcp"
volumes: volumes:
# Where to store the uploaded files - "/home/fascinated-cdn/uploads:/var/www/html:rw"
- ./uploads:/var/www/html networks:
- bridge
networks:
bridge: