We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04585ac commit 272ee27Copy full SHA for 272ee27
ch09/planner/.dockerignore
@@ -0,0 +1,3 @@
1
+venv
2
+.env
3
+.git
ch09/planner/Dockerfile
@@ -0,0 +1,13 @@
+FROM python:3.10
+
+WORKDIR /app
4
5
+ADD requirements.txt /app/requirements.txt
6
7
+RUN pip install --upgrade pip && pip install -r /app/requirements.txt
8
9
+EXPOSE 8080
10
11
+COPY ./ /app
12
13
+CMD ["python", "main.py"]
ch09/planner/docker-compose.yml
@@ -0,0 +1,20 @@
+version: "3"
+services:
+ api:
+ build: .
+ image: event-planner-api:latest
+ ports:
+ - "8080:8080"
+ env_file:
+ - .env.prod
+ database:
+ image: mongo
14
15
+ - "27017"
16
+ volumes:
17
+ - data:/data/db
18
19
+volumes:
20
+ data:
0 commit comments