Skip to content

Layers of the Stack

Angel Rey edited this page Dec 23, 2020 · 1 revision

Processes

Our project has many moving pieces, but starting and stopping them are managed by Docker Compose. The config needed to spawn each process (a.k.a container) is defined in docker-compose.prod.yml.

Base

(basic services that are always running, required by everything)

  • nginx
  • postgres
  • redis
  • django (daphne)

Worker

(main django workers that should be restarted whenever python code changes)

  • django-http-worker
  • django-socket-worker

Background

(background task workers that need to be restarted when their python code changes)

  • botbeat
  • webpack
  • dramatiq
  • cloudflare
  • yacron

For more info see the Docker Compose