Skip to content

Refactor production Docker install workflow#19

Merged
Daniel-VM merged 2 commits into
BIPLAT-CIBERINFEC:developfrom
Daniel-VM:refactor-production-docker-install
Jul 8, 2026
Merged

Refactor production Docker install workflow#19
Daniel-VM merged 2 commits into
BIPLAT-CIBERINFEC:developfrom
Daniel-VM:refactor-production-docker-install

Conversation

@Daniel-VM

Copy link
Copy Markdown
Member

Summary

Refactors the production Docker installation workflow for pathocore-api so it can be deployed safely on the production VM without relying on workstation/testing compose behavior.

Changes

  • Requires an explicit non-committed production install config via --install_conf.
  • Keeps production secrets out of Docker Compose interpolation and image build context.
  • Generates a runtime-only .env.prod.file for Compose metadata.
  • Binds the production API to 127.0.0.1:8000 by default for reverse-proxy deployment.
  • Adds production install actions for install, upgrade, and fix-permissions.
  • Makes Gunicorn runtime settings configurable.
  • Adds DJANGO_DEBUG=false support through the existing PathoCore runtime .env flow.
  • Documents the production installation workflow.

Validation

  • bash -n container_install.sh scripts/container_start.sh install.sh
  • git diff --check
  • docker compose -f docker-compose.prod.yml config
  • container_install.sh --action fix-permissions with a temporary production config

@Daniel-VM
Daniel-VM marked this pull request as ready for review July 8, 2026 10:55
@Daniel-VM
Daniel-VM merged commit 3ba72dd into BIPLAT-CIBERINFEC:develop Jul 8, 2026
2 checks passed
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