Skip to content

Commit 2e7a82b

Browse files
committed
Add sutup for docker-compose
1 parent b6d8f5b commit 2e7a82b

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -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

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: '3.8'
2+
services:
3+
reverse-proxy:
4+
image: traefik:v2.6
5+
command: --api.insecure=true --providers.docker
6+
ports:
7+
- '80:80'
8+
- '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+
volumes:
16+
- .:/code
17+
ports:
18+
- '8000:8000'

0 commit comments

Comments
 (0)