Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codingforentrepreneurs/docker-docker-compose
How can Django, Express.js, Adonis.js, FastAPI, Flask, Posgresql, and Nginx run under one roof? One great answer is Docker Compose. This tutorial will show you how.
https://github.com/codingforentrepreneurs/docker-docker-compose
celery django docker docker-compose dockerfile expressjs fastapi golang microservices nginx php postgresql psql python redis redis-server
Last synced: 28 days ago
JSON representation
How can Django, Express.js, Adonis.js, FastAPI, Flask, Posgresql, and Nginx run under one roof? One great answer is Docker Compose. This tutorial will show you how.
- Host: GitHub
- URL: https://github.com/codingforentrepreneurs/docker-docker-compose
- Owner: codingforentrepreneurs
- License: mit
- Created: 2021-04-19T22:26:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-29T00:08:03.000Z (over 3 years ago)
- Last Synced: 2024-03-15T19:58:00.122Z (8 months ago)
- Topics: celery, django, docker, docker-compose, dockerfile, expressjs, fastapi, golang, microservices, nginx, php, postgresql, psql, python, redis, redis-server
- Language: Python
- Homepage: https://www.codingforentrepreneurs.com/projects/docker-and-docker-compose/
- Size: 36.1 KB
- Stars: 18
- Watchers: 5
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Docker-Docker-Compose Logo](https://static.codingforentrepreneurs.com/media/projects/docker-and-docker-compose/images/share/Docker__Docker_Compose.jpg)](https://www.codingforentrepreneurs.com/projects/docker-and-docker-compose)
# [Docker & Docker Compose](https://www.codingforentrepreneurs.com/projects/docker-and-docker-compose)
**Docker** helps us isolate our apps from everything else. It's *almost* as if our apps have their very own computer and I think that's pretty cool.
**Docker Compose** helps us build local networks with many apps attached to it.
This series will show you the fundamentals of using both in together.
But why?
Let's pretend I need Django, Express.js, and FastAPI to run on the *same domain*. Django will handle all the primary routes, Express.js will handle `/notifications` routes, FastAPI will handle the `/api/` routes.
But how do we run these all on the *same domain*? **nginx** to the rescue! That's true, nginx can help us run all of these apps as illustrated above.
But there's another problem. How can I use Docker for each of these apps?
This is where **docker compose** comes in. **Docker Compose** will orchestrate containers in a network of their own.
**Uh oh! This sounds complicated...**
That's true. This does sound complicated but it's not. It's really just a bunch of configuration to get this stuff working correctly. Once you understand it fully, you'll be ready to use it in all kinds of projects.
The goal of this series is to unpack what I mentioned above while building something real.