Skip to content

Correct local Docker port mappings - #7

Open
jhunterjActual wants to merge 2 commits into
GrandComicsDatabase:mainfrom
jhunterjActual:patch-1
Open

Correct local Docker port mappings#7
jhunterjActual wants to merge 2 commits into
GrandComicsDatabase:mainfrom
jhunterjActual:patch-1

Conversation

@jhunterjActual

@jhunterjActual jhunterjActual commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • map host port 3308 to MySQL's container port 3306
  • bind the published database and web ports to 127.0.0.1
  • document the host IP:host port:container port order inline

Why

The previous 3308:3308 mapping targeted a port where MySQL does not listen. Omitting the host IP also published both development services on every network interface. These mappings preserve local access on ports 3308 and 8000 without exposing either service to the network.

Validation

  • docker compose config --quiet
  • git diff --check

Updated MySQL port mapping in docker-compose.
@jhunterjActual
jhunterjActual marked this pull request as ready for review August 5, 2026 16:09
@jhunterjActual
jhunterjActual marked this pull request as draft August 5, 2026 16:12
@jhunterjActual jhunterjActual changed the title Fix MySQL host port mapping Correct local Docker port mappings Aug 5, 2026
@jhunterjActual
jhunterjActual marked this pull request as ready for review August 5, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant