We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6d8f5b commit 2e7a82bCopy full SHA for 2e7a82b
Dockerfile
@@ -0,0 +1,8 @@
1
+# syntax=docker/dockerfile:1
2
+FROM python:3
3
+ENV PYTHONDONTWRITEBYTECODE=1
4
+ENV PYTHONUNBUFFERED=1
5
+WORKDIR /code
6
+COPY requirements.txt /code/
7
+RUN pip install -r requirements.txt
8
+COPY . /code/
docker-compose.yml
@@ -0,0 +1,18 @@
+version: '3.8'
+services:
+ reverse-proxy:
+ image: traefik:v2.6
+ command: --api.insecure=true --providers.docker
+ ports:
+ - '80:80'
+ - '8080:8080'
9
+ volumes:
10
+ - /var/run/docker.sock:/var/run/docker.sock
11
+
12
+ web:
13
+ build: .
14
+ command: python manage.py runserver 0.0.0.0:8000
15
16
+ - .:/code
17
18
+ - '8000:8000'
0 commit comments