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 bc3e329 commit 040abafCopy full SHA for 040abaf
Dockerfile
@@ -0,0 +1,14 @@
1
+FROM python:3.5
2
+
3
+WORKDIR /app
4
5
+COPY . /app
6
7
+RUN pip install -r requirements.txt
8
9
+EXPOSE 8096
10
+EXPOSE 80
11
12
+CMD ["python", "manage.py", "makemigrations"]
13
+CMD ["python", "manage.py", "migrate"]
14
+CMD ["python", "manage.py", "runserver"]
docker-compose.yml
@@ -0,0 +1,16 @@
+version: '3'
+services:
+ web:
+ build: .
+ ports:
+ - "5000:5000"
+ volumes:
+ - .:/code
+ - logvolume01:/var/log
+ links:
+ - redis
+ command: python manage.py runserver 0.0.0.0:5000
+ redis:
+ image: redis
15
+volumes:
16
+ logvolume01: {}
0 commit comments