Created
February 9, 2025 05:58
-
-
Save 1ycx/3b0e21c8e429177df768cc6c5eff9964 to your computer and use it in GitHub Desktop.
mat2-web - Unraid (docker) deployment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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