Skip to content

Instantly share code, notes, and snippets.

@1ycx
Created February 9, 2025 05:58
Show Gist options
  • Save 1ycx/3b0e21c8e429177df768cc6c5eff9964 to your computer and use it in GitHub Desktop.
Save 1ycx/3b0e21c8e429177df768cc6c5eff9964 to your computer and use it in GitHub Desktop.
mat2-web - Unraid (docker) deployment
#!/bin/bash
# Run the mat2-web container
# Update TZ, HOST_HOSTNAME, and MAT2_ALLOW_ORIGIN_WHITELIST
# Everything else can be left as-is
# See - https://0xacab.org/jvoisin/mat2-web
docker run
-d \
--name='mat2-web' \
--net='bridge' \
--pids-limit 2048 \
-e TZ="America/New_York" \
-e HOST_OS="Unraid" \
-e HOST_HOSTNAME="Unraid_Server" \
-e HOST_CONTAINERNAME="mat2-web" \
-e 'MAT2_ALLOW_ORIGIN_WHITELIST'='*' \
-e 'MAT2_MAX_FILES_BULK_DOWNLOAD'='10' \
-e 'MAT2_MAX_FILE_AGE_FOR_REMOVAL'='900' \
-e 'MAT2_WEB_DOWNLOAD_FOLDER'='/app/upload' \
-l net.unraid.docker.managed=dockerman \
-l net.unraid.docker.icon='https://0xacab.org/uploads/-/system/project/avatar/1677/mat2.png' \
-p 8080:8181 \
--read-only \
--security-opt=no-new-privileges \
--mount type=tmpfs,destination=/tmp \
--mount type=tmpfs,destination=/run/uwsgi \
--mount type=tmpfs,destination=/app/upload 'registry.0xacab.org/jvoisin/mat2-web:latest'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment