We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b5cf9e commit 17c68d7Copy full SHA for 17c68d7
2 files changed
Dockerfile
@@ -0,0 +1,9 @@
1
+FROM python:3.8-slim-buster AS build
2
+
3
+COPY requirements-dev.txt .
4
+RUN pip install --upgrade pip
5
+RUN pip install -r requirements-dev.txt
6
+RUN pip install "pymongo>=3.4,<4.0"
7
8
+WORKDIR /app
9
+COPY . ./
docker-compose.yml
@@ -0,0 +1,17 @@
+version: '3.4'
+services:
+ mongoengine:
+ build:
+ context: .
+ image: mongoengine:latest
+ network_mode: host
+ depends_on:
+ - mongo
10
+ working_dir: /app
11
+ volumes:
12
+ - .:/app
13
+ mongo:
14
+ image: mongo:4
15
+ restart: always
16
+ ports:
17
+ - 27017:27017
0 commit comments