Integrate dockerized Mongodb configuration

This commit is contained in:
2020-04-15 00:43:40 +02:00
parent ff3a1a3523
commit 8687408d9c
5 changed files with 110 additions and 1 deletions

11
backend/docker/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM tiangolo/uwsgi-nginx-flask:python3.7
RUN pip install requests
RUN pip install pandas
RUN pip install Flask-BasicAuth
RUN pip install bs4
COPY ../app /app

View File

@ -0,0 +1,14 @@
version: '2'
services:
mongo:
extends:
file: docker-compose.yml
service: mongo
mongo-express:
depends_on:
- mongo
image: mongo-express
restart: always
ports:
- "8081:8081"

View File

@ -0,0 +1,12 @@
version: '2'
services:
mongo:
image: mongo
restart: always
ports:
- "27017:27017"
backend:
depends_on:
- mongo
build: .