generate docker data

This commit is contained in:
programador 2025-03-25 13:18:41 -05:00
parent e8f88c70c9
commit 9fd5fb24fe
4 changed files with 55 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
__pycache__/
*.py[cod]
*$py.class
.vscode/
.idea
*.env
*.env.docker
/apps/*/migrations/
/static/

7
DockerFile Normal file
View 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
View 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
View 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