docassemble icon indicating copy to clipboard operation
docassemble copied to clipboard

Feature Request: seperate out services from Dockerfile

Open emansom opened this issue 1 year ago • 3 comments

Hello, i'd like to run docassemble as container and only docassemble to run within that container.

This'd allow me to utilize official Postgres, Redis, Celery, RabbitMQ and Apache images for all other services instead: connecting them all together through either docker-compose, Podman Pods or Kubernetes Pods.

emansom avatar May 01 '24 17:05 emansom

All of those services can be externalized. See here for how the Kubernetes implementation does it: https://github.com/jhpyle/charts

jhpyle avatar May 01 '24 17:05 jhpyle

How exactly does the docker container know to not start its own bundled services(Apache, Postgres, Redis etc.)? If I understand correctly the environment variable CONTAINERROLE=web:celery will ensure the container only runs its own web UI?

Thanks for the pointer, the documentation doesn't make it very clear there's an example.

I'd prefer if the official docassemble container kept itself very simple and instead would rely on orchestrators (like docker-compose, Kubernetes, Nomad) to launch services that it depends upon.

emansom avatar May 01 '24 18:05 emansom

The Docker container uses supervisord and the initialize service starts other services based on the value of the CONTAINERROLE environment variable.

jhpyle avatar Jul 11 '24 01:07 jhpyle