Production Docker compose, GitHub workflow for GHCR, and quickstart docs - #34
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR advances the “docker decoupling” work by adding a production-oriented Docker Compose definition for running WCOA against a published image, introducing a GitHub Actions workflow to build/publish that image to GHCR, and documenting a minimal Docker quickstart for local use.
Changes:
- Fixes the Taskfile base-image build command quoting so the task runs.
- Adds
docker/compose.prod.ymlfor running the stack from prebuilt images (PostGIS, Redis, Tomcat/Geoportal, Elasticsearch, etc.). - Adds a GH Actions workflow to build and publish
ghcr.io/ecotrust/wcoa, plus quickstart instructions inREADME.md.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| Taskfile.yml | Updates local task automation for building the base image and running the dev stack. |
| README.md | Adds a short Docker quickstart for the split base/overlay workflow. |
| docker/compose.prod.yml | Introduces a production compose file wired to the published GHCR image and supporting services. |
| .github/workflows/build-and-publish-image.yml | Adds CI to build/push the WCOA image to GHCR with SHA/latest tagging. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+48
to
+49
| ports: | ||
| - "${DB_PORT:-5432}:5432" |
Comment on lines
+62
to
+63
| ports: | ||
| - "${REDIS_PORT:-6379}:6379" |
Comment on lines
+45
to
+47
| tags: | | ||
| ${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.sha }} | ||
| ${{ env.IMAGE_NAME }}:latest |
Comment on lines
+12
to
+14
| - MP_PROJECT_CONFIG=/usr/local/apps/madrona-portal/apps/wcoa/docker/config.wcoa.docker.ini | ||
| - SECRET_KEY=${SECRET_KEY} | ||
| - ALLOWED_HOSTS=${ALLOWED_HOSTS:-localhost,127.0.0.1,::1} |
Comment on lines
+17
to
+20
| - DB_NAME=${DB_NAME:-wcoa_docker_db} | ||
| - DB_USER=${DB_USER:-postgres} | ||
| - DB_PASSWORD=${DB_PASSWORD} | ||
| - DB_HOST=db |
Comment on lines
+108
to
+111
| - xpack.security.enabled=false | ||
| - path.repo=/usr/share/elasticsearch/backups | ||
| ports: | ||
| - 9200:9200 |
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.
dd7branch on wcoa is part of docker decoupling.Symbiotic relationship with Ecotrust/madrona-portal#60