Comments (11)
That seems to have fixed this issue, but revealed another. I've opened #6, but this one look fixed. Thanks for the quick turnaround!
from dozzle.
@kmlucy This is not possible right now. But it wouldn't be too hard to add it. Before doing it, I want to make sure I understand your use case. I think in Docker you can only bound one container to each port. So I am wondering why it would be useful to have this running on /dozzle
instead when it will have to be also another port anyway. Let me know if I am not understanding your use case.
from dozzle.
I have it running behind a reverse proxy so I would like to be able to access it at https://URL/dozzle. The alternative is to create another subdomain. While that is possible, I would greatly prefer to just have it in a subdirectory instead.
from dozzle.
If you are already running it behind a revery proxy then wouldn't it be possible to map /dozzle
to locahost:8080/
? Or is that not possible?
from dozzle.
It is possible to map it, yes, but it doesn't work for any hardcoded paths. So when it tries to get something like /styles.css
, it can't find it.
For this specific instance, the application doesn't load because it is looking for /main.4b8b43b8.js
and /main.943eb0cf.css
instead of /dozzle/main.4b8b43b8.js
and /dozzle/main.943eb0cf.css
.
from dozzle.
ahhh. I see. Ok, that makes more sense. I thought that might be the problem but I wasn't sure. Let me see if I can make it easy to fix that.
from dozzle.
Awesome, thanks!
from dozzle.
@kmlucy can you try with https://github.com/amir20/dozzle/releases/tag/v1.2.0? It should work now with --base
option which is documented in the readme file.
Please let me know how it goes! And thanks for the feedback.
from dozzle.
Ok, so how to pass the --base variable in docker-compose? why not just use environment variables?
UPDATE: Given the unusual use of arguments, I've managed to circumvent rebuilding the project to use environment variables (i.e: os.Getenv("ADDR")), I figured docker-compose could handle passing the arguments via command: https://docs.docker.com/compose/compose-file/#command
for example:
dockerlogs:
image: amir20/dozzle:latest
container_name: dockerlogs
restart: always
command: --base /dockerlogs
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
from dozzle.
I was going to suggest using command
. The reason I hadn't done a lot in in ENV is because I have also released this project as binary. Which makes more sense than ENV.
It wouldn't be hard to make it read ENV though in https://github.com/amir20/dozzle/blob/master/main.go#L36-L38.
I use pflags
so if there is an easy way to make that change, I'll happily accept PRs.
from dozzle.
This might fix this.
#21
I'll need to update the docs. You can do DOZZLE_BASE=/test go run main.go
from dozzle.
Related Issues (20)
- Dozzle (internal) time / TZ environment option HOT 4
- I don't want to track all docker container logs. HOT 3
- v 6.4.3 breaks container actions HOT 4
- Dozzle Config screen and Container Summary missing from Safari but present in Chrome HOT 8
- 🙋🏻 Traefik 2.11 breaks Dozzle (fixed) HOT 15
- Constant blinking/reload of logs in the latest dozzle HOT 3
- Can't scroll up in side-by-side view HOT 2
- DOZZLE_TAILSIZE alternative HOT 1
- Problem identifying "Fail" HOT 4
- feat: support copy permanent link URL to clipboard HOT 7
- Podman Socket Connection Issue HOT 8
- [feature request] save logs in sqlite like https://github.com/nightlord189/docklogkeeper HOT 2
- Why the log shows that the service is shutting down automatically HOT 1
- Feature request : Be able to download only STDOUT or only STDERR logs HOT 3
- Feature request: Be able to download the logs splitted in multiples files of x mb instead of a single big file HOT 2
- Feature Request : AVG.CPU (%) and AVG.MEM(%) : allow live updating of sorting HOT 2
- Merge logs from the same container on different servers. HOT 3
- Resources dashboard for remote host HOT 1
- Insane browser memory usage when looking at a container logs which generated hundreds of lines per second HOT 5
- Start and stop buttons on mobile version HOT 1
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 dozzle.