mirror of
https://gitlab.com/mojo42/Jirafeau.git
synced 2025-01-17 04:48:19 +01:00
420be1d8b3
- web_root - var_root - admin_password ref #247 Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
Run Jirafeau through a pre-made Docker image
Jirafeau is a small PHP application so running it inside a docker is pretty straightforward.
docker pull mojo42/jirafeau:latest
docker run -d -p 8080:80 mojo42/jirafeau:latest
Then connect on locahost:8080.
The admin console is located on /admin.php
, check console output to get auto-generated admin password.
Build your own Jirafeau docker image
git clone https://gitlab.com/mojo42/Jirafeau.git
cd Jirafeau
docker build -t your/jirafeau:latest .
Security
You may be interested to run Jirafeau on port 80:
docker run -d -p 80:80 --sysctl net.ipv4.ip_unprivileged_port_start=80 mojo42/jirafeau
Note that Jirafeau image does not provide any SSL/TLS. You may be interrested in using docker compose combined with Let's Encrypt.
Options
Jirafeau docker image accept some options through environment variables to ease its configuration.
More details about options in lib/config.original.php
.
Available options:
ADMIN_PASSWORD
: setup a specific admin password. If not set, a random password will be generated.WEB_ROOT
: setup a specific domain to point at when generating links (e.g. 'jirafeau.mydomain.com/').VAR_ROOT
: setup a specific path where to place files. default: '/data'.FILE_HASH
: can be set tomd5
(default),partial_md5
orrandom
.
Few notes
var-...
folder where lives all uploaded data is protected from direct access- Image has been made using Alpine Linux with lighttpd which makes the container very light and start very quickly