Containerization of the app using docker-compose
See original GitHub issueRequirement
The app installation must be simplified and the app should be up with a single docker-compose up command.
Pre-requisite
- Some knowledge of containerization would be essential (preferably in docker, docker-compose or Kubernetes)
- Docker installed on the local machine. Instructions
Dependencies
None
Description
- This task requires creating the docker-compose.yml file to set up the main application service (Python code) and the database service (MySQL)
- Also, Dockerfile would be required to build the application service (dependency installation), the database service should use the prebuilt MySQL image.
- All environment variables must be passed in an elegant manner through the docker-compose file
docker-compose upshould start the init.py script.
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Try Docker Compose - Docker Documentation
Step 1: Define the application dependencies · Step 2: Create a Dockerfile · Step 3: Define services in a Compose file...
Read more >Containerization, Docker, Docker Compose: Step-by-step Guide
With Docker Compose, you can define a constant volume for storage, configure service dependencies, and specify base nodes.
Read more >Using Docker Compose To Deploy a Container - Upwork
How to deploy a multi-container application with Docker Compose · Build your application as a collection of independent microservices. · Create a ...
Read more >Containerization using Docker - GeeksforGeeks
Docker is the containerization platform that is used to package your application and all its dependencies together in the form of containers ...
Read more >Containerizing a Node.js Application for Development With ...
If you are actively developing an application, using Docker can simplify your workflow and the process of deploying your application to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I do indeed mean to use Dockerfile instead, if you are unable to resolve the docker-compose error. Using only docker would be more complicated as you would need to create a network for containers to communicate on.
Thanks @vishakha-lall. Your inputs really helped!!
I’m pruning and debugging other minor issues and will create a PR soon, once the GSSoC period begins. Cheers! 👍