Skip to content

Instantly share code, notes, and snippets.

View ashutosh1919's full-sized avatar
:octocat:
Building for the Betterment of World

Ashutosh Hathidara ashutosh1919

:octocat:
Building for the Betterment of World
View GitHub Profile
@ashutosh1919
ashutosh1919 / docker-compose.yml
Created September 21, 2020 06:33
docker-compose.yml file for Dockerized Flask + MongoDB application
app:
build: .
command: python -u app.py
ports:
- "5000:5000"
volumes:
- .:/app
links:
- db
db:
@ashutosh1919
ashutosh1919 / init-db.js
Created September 21, 2020 06:23
init-db.js for pre-populating data in MongoDB running in Docker Container
db = db.getSiblingDB("animal_db");
db.animal_tb.drop();
db.animal_tb.insertMany([
{
"id": 1,
"name": "Lion",
"type": "wild"
},
{
@ashutosh1919
ashutosh1919 / Dockerfile
Last active March 17, 2022 16:50
Gists for Dockerized Flask application
FROM python:3.6
ADD . /app
WORKDIR /app
RUN pip install -r requirements.txt