question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Containerization of the app using docker-compose

See original GitHub issue

Requirement

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 up should start the init.py script.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
vishakha-lallcommented, Mar 1, 2020

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.

1reaction
chttrjeankrcommented, Feb 29, 2020

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! 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found