Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM python:3.10.8

ENV PYTHONBUFFERED=1

RUN mkdir /app

WORKDIR /app/

COPY requirements.txt /app/

RUN pip install -r requirements.txt

COPY . /app/
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3.8'

services:
django:
build: .
container_name: django
command: python3 backend/manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"

depends_on:
- pgdb

pgdb:
image: postgres
container_name: postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
64 changes: 53 additions & 11 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,53 @@
django
django-dotenv
djangorestframework
django-cors-headers
django-rest-knox
PyYAML
cloudinary
requests
uplink
markdown
cloudinary
asgiref==3.6.0
async-timeout==4.0.2
attrs==22.2.0
autobahn==23.1.2
Automat==22.10.0
autopep8==2.0.1
certifi==2022.12.7
cffi==1.15.1
channels==3.0.5
channels-redis==4.0.0
charset-normalizer==3.0.1
cloudinary==1.31.0
constantly==15.1.0
cryptography==39.0.0
daphne==3.0.2
Django==4.0.9
django-cors-headers==3.13.0
django-dotenv==1.4.2
django-rest-knox==4.2.0
djangorestframework==3.14.0
djangorestframework-simplejwt==5.2.2
exceptiongroup==1.1.0
hyperlink==21.0.0
idna==3.4
incremental==22.10.0
iniconfig==2.0.0
Markdown==3.4.1
msgpack==1.0.4
packaging==23.0
pluggy==1.0.0
psycopg2-binary==2.9.5
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycodestyle==2.10.0
pycparser==2.21
PyJWT==2.6.0
pyOpenSSL==23.0.0
pytest==7.2.1
pytz==2022.7.1
PyYAML==6.0
redis==4.5.1
requests==2.28.2
service-identity==21.1.0
six==1.16.0
sqlparse==0.4.3
tomli==2.0.1
Twisted==22.10.0
txaio==23.1.1
typing_extensions==4.4.0
uplink==0.9.7
uritemplate==4.1.1
urllib3==1.26.14
zope.interface==5.5.2