diff --git a/blueprints/filerun/docker-compose.yml b/blueprints/filerun/docker-compose.yml new file mode 100644 index 00000000..eb39e695 --- /dev/null +++ b/blueprints/filerun/docker-compose.yml @@ -0,0 +1,44 @@ +services: + filerun-init: + image: busybox:1.37 + restart: "no" + command: chown -R 1001:1001 /var/www/html /user-files + volumes: + - filerun-html:/var/www/html + - filerun-user-files:/user-files + + filerun: + image: filerun/filerun:latest + restart: unless-stopped + depends_on: + filerun-init: + condition: service_completed_successfully + db: + condition: service_started + environment: + FR_DB_HOST: db + FR_DB_PORT: 3306 + FR_DB_NAME: ${MYSQL_DATABASE} + FR_DB_USER: ${MYSQL_USER} + FR_DB_PASS: ${MYSQL_PASSWORD} + volumes: + - filerun-html:/var/www/html + - filerun-user-files:/user-files + + db: + image: mariadb:12.2 + restart: unless-stopped + command: --old-mode=NO_PROGRESS_INFO + environment: + MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD} + MYSQL_USER: ${MYSQL_USER} + MYSQL_PASSWORD: ${MYSQL_PASSWORD} + MYSQL_DATABASE: ${MYSQL_DATABASE} + MARIADB_AUTO_UPGRADE: "1" + volumes: + - filerun-db:/var/lib/mysql + +volumes: + filerun-html: + filerun-user-files: + filerun-db: diff --git a/blueprints/filerun/filerun.svg b/blueprints/filerun/filerun.svg new file mode 100644 index 00000000..7825769e --- /dev/null +++ b/blueprints/filerun/filerun.svg @@ -0,0 +1,7 @@ + + FileRun + + + + + diff --git a/blueprints/filerun/meta.json b/blueprints/filerun/meta.json new file mode 100644 index 00000000..1f68ba5b --- /dev/null +++ b/blueprints/filerun/meta.json @@ -0,0 +1,17 @@ +{ + "id": "filerun", + "name": "FileRun", + "version": "latest", + "description": "FileRun is a self-hosted file manager and file sharing platform.", + "logo": "filerun.svg", + "links": { + "website": "https://filerun.com/", + "docs": "https://docs.filerun.com/docker", + "github": "https://github.com/filerun/docker" + }, + "tags": [ + "file-manager", + "file-sharing", + "storage" + ] +} diff --git a/blueprints/filerun/template.toml b/blueprints/filerun/template.toml new file mode 100644 index 00000000..b9b2b8bf --- /dev/null +++ b/blueprints/filerun/template.toml @@ -0,0 +1,19 @@ +[variables] +main_domain = "${domain}" +mysql_user = "filerun" +mysql_database = "filerun" +mysql_password = "${password:32}" +mariadb_root_password = "${password:32}" + +[config] +env = [ + "MYSQL_USER=${mysql_user}", + "MYSQL_DATABASE=${mysql_database}", + "MYSQL_PASSWORD=${mysql_password}", + "MARIADB_ROOT_PASSWORD=${mariadb_root_password}", +] + +[[config.domains]] +serviceName = "filerun" +port = 80 +host = "${main_domain}" \ No newline at end of file