Conversation
…nd .env Co-authored-by: markmnl <2630321+markmnl@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add initial project structure for fmsg-docker
Create initial project structure: Dockerfile, docker-compose stack, and env config
Mar 8, 2026
markmnl
requested changes
Mar 8, 2026
Owner
markmnl
left a comment
There was a problem hiding this comment.
Add docker/ fmsgid and docker/fmsg-webapi dirs with respective Dockerfile
Use postgresql 18
Co-authored-by: markmnl <2630321+markmnl@users.noreply.github.com>
Contributor
Author
Done in ea44f0f:
|
Copilot
AI
changed the title
Create initial project structure: Dockerfile, docker-compose stack, and env config
Create initial project structure: Dockerfiles, docker-compose stack, and env config
Mar 8, 2026
markmnl
approved these changes
Mar 8, 2026
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.
Bootstraps the repo with the directory layout and files needed to run a full fmsg stack via Docker Compose.
New files
docker/fmsgd/Dockerfile— two-stage build: clonesmarkmnl/fmsgd, compiles withgolang:1.25, copies binary into adebian:bookworm-slimruntime image; runs as non-rootfmsguser on port4930docker/fmsgid/Dockerfile— two-stage build: clonesmarkmnl/fmsgid, compiles withgolang:1.18, copies binary into adebian:bookworm-slimruntime image; runs as non-rootfmsguser on port8080docker/fmsg-webapi/Dockerfile— two-stage build: clonesmarkmnl/fmsg-webapi, compiles withgolang:1.25, copies binary into adebian:bookworm-slimruntime image; runs as non-rootfmsguser on port8081compose/docker-compose.yml— four services with correct startup ordering:postgres:18-alpinewith health checkfmsgid— built from local Dockerfile, waits for postgres healthyfmsgd— built from local Dockerfile, waits for postgres healthy + fmsgid startedfmsg-webapi— built from local Dockerfile, depends on fmsgd + fmsgidcompose/.env— all required env vars with defaults (FMSG_DOMAIN,FMSG_PORT,FMSGID_PORT,GIN_MODE,PG*)Modified files
.gitignore— added!compose/.envnegation so the compose env file is tracked while root-level.envfiles remain ignoredREADME.md— added structure diagram and quick-start stepsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.