Comments (4)
Hey @aguileraGit 👋.
Inside the container the server always starts on port 8080. But Docker lets you map that internal port to another port outside the container.
When using docker run
the flag would look something like -p 1234:8080
. I've not used Portainer myself but I would imagine you can do something similar?
from flatnotes.
Hey @dullage. Yes, Portainer provides a way to house multiple Docker Compose files (among others). Instead of having a folder with a bunch of Docker Compose files, it has an interface to organize, store, and edit them. Following the Docker Compose example on the README, -p 1234:8080
should expose port 1234
the same way docker run
works. But it doesn't. When I look at the logs, I see it starting on 8080.
ERROR: [Errno 98] error while attempting to bind on address ('0.0.0.0', 8080): address already in use
This might be a limitation of my setup. I have multiple containers running and using the HOST IP. It just makes it easier for me to load a container using hostIP:port, where each port points to a different container. Except in this case. I'm trying to host multiple containers that have the same internal port (8080).
I think if I changed the networking type, then containers could all use port 8080 and then can be 'mapped' to an external port. I'll do a little more reading.
from flatnotes.
Based on this from the Portainer docs it looks possible. Let me know how you get on.
from flatnotes.
I'm going to close this. The issue is specific to running containers with network_mode = HOST
AND services inside containers use the same port.
As a test, I've cloned this repo, changed the port to 8181, built the image, and deployed the container without any errors.
Ideally, an argument port in entrypoint.sh
could be added. This is similar to ${PGID}
and others. This also means moving the HEALTHCHECK from the dockerfile to docker compose. Not sure how that works with just docker.
I'll put a little more effort into this. I rather have docker pull your latest version instead of having to merging updates into my repo and fighting with git since Dockerfile
and entrypoint.sh
differ. Thoughts?
from flatnotes.
Related Issues (20)
- Style issues with code blocks HOT 5
- [Feature Request] Attatch Files in Notes HOT 1
- [Feature Request] OCR Software for Pictures and maybe pdf Files
- Images not showing up HOT 1
- [Feature Request] submenu/folders HOT 10
- Searching Bug HOT 2
- Where are all the Notes in the Server File Manager? HOT 4
- Number List issue HOT 1
- Add config option to show "Recently modified" in read-only mode HOT 1
- Multiple Errors HOT 2
- Retain scroll position when switching to edit mode HOT 1
- Install uvloop alongside Uvicorn for performance improvements HOT 4
- Add ability to change port number HOT 2
- [Feature Request] Add cli interface
- /entrypoint.sh: 34: exec: 1000:1000: not found HOT 8
- Keep container in "starting" state HOT 3
- 4.0.4 healthcheck is failing HOT 3
- Support for alternate base url HOT 5
- [Feature] Disable TOAST UI Editor usage statistics HOT 2
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 flatnotes.