Skip to content
memghost.com Open App

Ports & Networking

Default Port Mappings

ServiceContainer PortHost PortProtocol
Go API (api)80808088HTTP
PostgreSQL (db)54325432TCP
Next.js (web)30003300HTTP

Changing Host Ports

Edit the ports section in docker-compose.yml (or docker-compose.test.yml):

# Change the API host port to 9090
api:
ports:
- "9090:8080" # host:container

If you change the API host port, also update NEXT_PUBLIC_API_URL on the web service:

web:
environment:
NEXT_PUBLIC_API_URL: http://localhost:9090

Docker Network

Docker Compose automatically creates a bridge network for the stack’s services. No manual network creation is required.

Service Discovery

Within the compose stack, services are reachable by their service name. From outside the stack (devcontainer or host), use published ports:

FromToURL
apidbdb:5432
webapiapp:8080
Dev containerapihost.docker.internal:8088
Dev containerdbhost.docker.internal:5432
Host browserapilocalhost:8088
Host browserweblocalhost:3300

Dev Container Integration

The dev container runs on its own bridge network and reaches compose services via host.docker.internal and published ports. No shared network configuration is needed — the devcontainer and compose stack are fully independent.

Firewall Considerations

If you’re exposing MemGhost on your local network, ensure these host ports are accessible:

  • 8088 (API) — needed if other devices on your network need API access
  • 3300 (Frontend) — needed for accessing the web UI from other devices

For a reverse proxy setup (e.g., Traefik, Caddy, nginx), point the proxy at the container ports directly on the Docker network rather than the host ports.

Optional Services

ServicePortDescription
OpenFGA8081Authorization service (if enabled)
Zipkin9411Distributed tracing (if enabled)