Basic Information
We need something that automatically sets up the production deployment.
Below are my recommendations
These are what we need for backend:
- nginx setup to serve django admin and API
- docker compose that includes 3 containers (database, nginx, backend api, watchtower)
- github actions automatically building and sending the backend container
- I recommend watchtower to handle the continuous deployment (so when there's a new container, the new container is boot up atuomatically)
Other Information
Refer to previous project https://github.com/codersforcauses/csf/blob/main/docker-compose-prod.yml . CSF has everything.
If I were to change that, it is to specify a specific version for postgres. Not specifying the version means that we risk incompatibility when there's a new postgres image available.
Basic Information
We need something that automatically sets up the production deployment.
Below are my recommendations
These are what we need for backend:
Other Information
Refer to previous project https://github.com/codersforcauses/csf/blob/main/docker-compose-prod.yml . CSF has everything.
If I were to change that, it is to specify a specific version for postgres. Not specifying the version means that we risk incompatibility when there's a new postgres image available.