Comments (3)
You can override both the ENTRYPOINT
and CMD
parts of a dockertfile when running a container:
docker run -v /mydir:/mydir --entrypoint=/mydir/start.sh hurlenko/filebrowser --root=/mydir/data --database=/mydir/config/filebrowser.db
I have no experience with fly.io, not sure if it is possible to do this via their platform. As for the proposals - I believe it might break existing setups, don't really want to do that.
from filebrowser-docker.
You don't run docker command when deploy to fly.io, so unfortunately that's not an option.
I will stay with my own build then based on your Dockerfile and get.sh.
I think you can fix that so it will work for old users. Just add .filebrowser.yaml
version: 3
address: 0.0.0.0
root: /data
database: /config/filebrowser.db
And copy it in Dockerfile
COPY /.filebrowser.yaml /.filebrowser.yaml
The priority listed here https://filebrowser.org/cli/filebrowser will let us override properties easily with ENVs or replace .filebrowser.yaml in simple Dockerfile not recreating whole workflow just to set own variables.
Those users who did not do this setup will still have the same properties you did, but with ability to override using different techniques like set another config with flag, replace .filebrowser.yaml with own, use ENVs.
Flags have highest priority that makes your image braking original customisation. So, that was my suggestion how to fix that.
from filebrowser-docker.
Just an example of my props. I've also added Nginx to the image to use another subpath.
host/browser/ - filebrowser
host/shared/ - proxied direct link to content in shared folder
root: /data/data
database: /data/config/database.db
As I mentioned, this config lets me mount one single volume.
from filebrowser-docker.
Related Issues (20)
- This location can't be reached HOT 1
- Using different authentication methods with docker-compose HOT 1
- How to disable authentication? HOT 14
- How Do enable cache for browse huge file list
- please merge file browse and ariang HOT 1
- installed, works, but only on local network HOT 2
- Unzip file HOT 1
- increasing the upload size HOT 1
- Use behind nginx proxy manager HOT 3
- Control the name of the container in Portainer HOT 4
- Customizable Disclaimer and Footer HOT 2
- Is there any API to upload / download files? HOT 1
- Multiple and shared paths at the same time?
- Change title of home page
- [Feature Request] There is no support for colour combinatoins.
- What is the correct volume declaration for docker compose? HOT 1
- Please update docker image for filebrowser v2.24.0 HOT 4
- User docker-compose HOT 4
- 404 Access error when using Prestashop with friendly urls, on Apache server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filebrowser-docker.