generate docker data
This commit is contained in:
parent
e8f88c70c9
commit
9fd5fb24fe
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
.vscode/
|
||||
.idea
|
||||
*.env
|
||||
*.env.docker
|
||||
/apps/*/migrations/
|
||||
/static/
|
||||
7
DockerFile
Normal file
7
DockerFile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM python:3.11
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
WORKDIR /backend
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
COPY . .
|
||||
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal file
@ -0,0 +1,24 @@
|
||||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
ecommerce-backend:
|
||||
build: .
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
volumes:
|
||||
- .:/backend
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
- db
|
||||
env_file:
|
||||
- .env
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
15
requirements.txt
Normal file
15
requirements.txt
Normal file
@ -0,0 +1,15 @@
|
||||
Django==4.2.7
|
||||
djangorestframework==3.14.0
|
||||
djangorestframework-simplejwt==5.3.0
|
||||
djangorestframework-camel-case==1.4.2
|
||||
django-cors-headers==4.3.1
|
||||
django-import-export==3.0.1
|
||||
drf-yasg==1.21.7
|
||||
gunicorn==21.2.0
|
||||
requests==2.31.0
|
||||
psycopg2-binary==2.9.9
|
||||
PyJWT==2.8.0
|
||||
django-environ==0.9.0
|
||||
cryptography==44.0.2
|
||||
cron-descriptor==1.4.0
|
||||
django-filter==25.1
|
||||
Loading…
x
Reference in New Issue
Block a user