Replies: 4 comments 2 replies
-
The port for The port is exposed only for internal containers using Also, I noticed that you have changed the ports of the
Refer https://docs.docker.com/compose/compose-file/05-services/#ports on how to configure the ports I would make the following changes to your docker-compose services:
db:
....
ports:
- - "5428:5428"
+ - "5428:5432"
...
base-service:
...
environment:
# These environment variables are useless.
- - HTTP_PORT=8030
- - HTTPS_PORT=8921
...
service:
...
healthcheck:
- test: curl -f http://localhost:8030
+ test: curl -f http://localhost:8000
...
expose:
- - "8030"
+ - "8000"
caddy-reverse-proxy:
...
ports:
- "8038:80"
- "9281:443"
...
|
Beta Was this translation helpful? Give feedback.
-
I changed 8000 because Portainer is on 8000. I also had a conflict with 5432 but you're right i goofed that one! Most of the stuff I self-host I've been able to change ports pretty freely as long as all proper spots are updated. This one kinda confused me a bit. Guess I'll just have to free up 8000? |
Beta Was this translation helpful? Give feedback.
-
Awesome, thanks Mukesh - I'll give that a try and report back!
…On Thu, Apr 20, 2023 at 8:41 PM Mukesh ***@***.***> wrote:
There is no need to free up port 8000. We are not binding the port to the
host network, we only expose it(so that the reverse proxy can forward
request to the container) which means the port can be accessed only by
specifying the container name. So it won’t clash with the Portainer running
in a different container. . You only need to configure the caddy ports
which are customisable as they bind to the host network
—
Reply to this email directly, view it on GitHub
<#2830 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXBYUUIFI5N5TUCY5D4QXHTXCHQUDANCNFSM6AAAAAAXE5HRYQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Stay awesome,
[image: Company logo]
Vincent Termini VP, Marketing & Automation
Sacramento, CA
(916) 407-4884 | GrubBoxx.com
|
Beta Was this translation helpful? Give feedback.
-
Accessing via Caddy ports doesn't work, I'm guessing because of something with Synology. I think I'll just stick to Baserow for now, but will keep an eye on the project. |
Beta Was this translation helpful? Give feedback.
-
I'm a little confused on how to change the docker port as this is my first dabble in "profiles."
I'm not sure what port I should be using to access Mathesar. Everything is up and running, just tried the initial ports (8030) as well as adding custom ports but get nothing. Any advice would be greatly appreciated!
Here's the latest docker-compose I've tried.
Beta Was this translation helpful? Give feedback.
All reactions