mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-10 00:15:28 +02:00
Merge pull request #932 from rohitmulani63-ops/codex/add-filerun-template
feat: add FileRun template
This commit is contained in:
44
blueprints/filerun/docker-compose.yml
Normal file
44
blueprints/filerun/docker-compose.yml
Normal file
@@ -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:
|
||||
7
blueprints/filerun/filerun.svg
Normal file
7
blueprints/filerun/filerun.svg
Normal file
@@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" role="img" aria-labelledby="title">
|
||||
<title>FileRun</title>
|
||||
<rect width="256" height="256" rx="56" fill="#2563eb"/>
|
||||
<path fill="#ffffff" d="M62 76c0-11 9-20 20-20h50c6 0 12 3 16 7l32 32c4 4 6 9 6 15v70c0 11-9 20-20 20H82c-11 0-20-9-20-20V76Z" opacity=".95"/>
|
||||
<path fill="#bfdbfe" d="M132 58v42c0 7 5 12 12 12h40l-52-54Z"/>
|
||||
<path fill="#2563eb" d="M91 143h74v14H91v-14Zm0 28h56v14H91v-14Zm0-56h40v14H91v-14Z"/>
|
||||
</svg>
|
||||
17
blueprints/filerun/meta.json
Normal file
17
blueprints/filerun/meta.json
Normal file
@@ -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"
|
||||
]
|
||||
}
|
||||
19
blueprints/filerun/template.toml
Normal file
19
blueprints/filerun/template.toml
Normal file
@@ -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}"
|
||||
Reference in New Issue
Block a user