Repository navigation
Conversation
Addresses part of steve-community#1933. - Removed `ports: 3306:3306` on the db service. The app container never needed it on the host network — it already reaches the database as "mariadb" (now via an explicit network alias instead of the legacy `links:`). Exposing the database port to the host was unnecessary surface area. - Added an explicit `steve-net` bridge network for db<->app traffic, replacing the implicit default network and legacy `links:` mapping. Tested end to end with `docker compose up --build`: app builds, connects to the db over steve-net, starts ("Started SteveApplication..."), and is reachable on host port 8180 (302, as expected pre-login) -- while the db is no longer reachable from the host at all (confirmed via `docker compose ps`, no host port binding on the db service). Not included in this PR: the volume mount for db data already exists on master (`db-data:/var/lib/mysql`), so that part of steve-community#1933 looks already resolved and needed no change. I also attempted the JRE-only multi-stage Dockerfile from steve-community#1919, but the Maven build (jOOQ codegen + Flyway migrations both run in the generate-sources phase against a live database) needs a reachable MariaDB *during* `docker build`, which a plain multi-stage Dockerfile can't provide -- that needs a different approach (e.g. a compose-orchestrated build step, or a prebuilt WAR), so I've scoped this PR to the compose networking fix only rather than submit something that doesn't actually solve steve-community#1919. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
PR Summary by QodoHarden Docker Compose database networking
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can route each action level your way: inline, summary, both, or drop |
ugurcihan
added a commit
to ugurcihan/portfolio
that referenced
this pull request
Sep 28, 2026
- Rewrite About (EN/TR): drop "all of my conviction goes to KuExpo", state real launches (KuExpo on App Store + Google Play, LifeCheck on App Store) and openness to joining a team; fix LifeCheck description - Preview modal renders multiple outbound links; add App Store / Google Play links to KuExpo and LifeCheck, repo link to Gridspark - Group projects (Products / Engineering & Open Source / Web & Design / Ventures & Concepts), card titles to h4 under group h3s - New Open Source card linking mobilityhouse/ocpp#776 and steve-community/steve#2143 - LinkedIn in contact, footer and JSON-LD sameAs; footer profile links - Remove stale public drafts (variant-a..d, style-a..d, script-a) and the old resume PDF - Shorten hero scroll (325vh -> 200vh desktop, 250vh -> 170vh mobile) - Security headers, branded 404, sitemap lastmod - Versioned hero/background assets with immutable caching; other assets 1 day + stale-while-revalidate instead of 5 minutes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses part of #1933.
Changes
ports: 3306:3306on thedbservice. Theappcontainer never needed it on the host network — it reaches the database asmariadbover the compose network (now via an explicit network alias instead of the legacylinks:mapping). Exposing the database port to the host was unnecessary surface area.steve-netbridge network for db↔app traffic, replacing the implicit default network + legacylinks:.Testing
Tested end to end with
docker compose up --build:Started SteveApplication in 14.886 secondssteve-net(HikariPool/jOOQ initialize against MariaDB successfully)302, expected pre-login redirect)dbis no longer reachable from the host — confirmed viadocker compose ps, no host port binding shown on thedbservice (only3306/tcpinternal)Scope
db-data:/var/lib/mysql) already exists onmaster, so that part of Improve the Docker-Compose #1933 looks already resolved — no change needed there.docker build: both the jOOQ codegen and the Flyway migrations run in thegenerate-sourcesphase against a real MariaDB connection (jOOQ generates Java classes from the live schema). A plain multi-stage Dockerfile's build stage has no access to other compose services, so that approach doesn't actually work — it needs something like a compose-orchestrated build step or a prebuilt WAR instead. Rather than submit a Dockerfile change that looks right but breaks in practice, I've scoped this PR to the compose networking fix, which I could fully verify.