Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production Deployment Setup #8

Open
frinzekt opened this issue Aug 16, 2024 · 2 comments
Open

Production Deployment Setup #8

frinzekt opened this issue Aug 16, 2024 · 2 comments

Comments

@frinzekt
Copy link
Member

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.

@frinzekt
Copy link
Member Author

Skip frontend deployment... Let's just do it in vercel.
We can create an alternative docker compose in the future, but no priorities on that for now

@CodeWithTheDoctor
Copy link
Collaborator

Sounds like a plan! Thanks for creating the issue frinze!

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

No branches or pull requests

2 participants