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

Provide a production docker-compose template for simpler applications #11

Open
devraj opened this issue Jul 29, 2022 · 2 comments
Open

Comments

@devraj
Copy link
Member

devraj commented Jul 29, 2022

While we have a full blown Terraform and K8s template in the lab-tf-linode we should provide a template for simpler apps to be deployed via just docker. This would look very similar to the development setup where we manage various backends on the same node.

We would have:

  • Traefik as a reverse proxy with SSL certs
  • Python API
  • Still use an object store provisioned using Terraform
  • Postgres installed on the Docker environment as well
@devraj
Copy link
Member Author

devraj commented Sep 26, 2022

Points to cover:

  • No need to expose ports expect for that of the reverse proxy
  • Still a good idea to have a firewall on the host
  • Volumes are required to preserve the data for the postgres instance

@devraj
Copy link
Member Author

devraj commented Dec 19, 2022

I prototyped these in the lab-python-server repository, which should then be merged into the Terraform templates, see:

While building for x86/64 platforms, be sure to provide --platform flag

docker build --platform=linux/amd64 -t anomalyhq/lab-python-:0.1.0 -f Dockerfile.prod .

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

1 participant