diff --git a/hiring_module/.example.env b/hiring_module/.example.env new file mode 100644 index 0000000..4206baf --- /dev/null +++ b/hiring_module/.example.env @@ -0,0 +1,15 @@ +SECRET_KEY=django-insecure-4ht3kx09p6eqjx1&(l#d8h5qsmg(3jdgthb2aw#gz!7un41*mr +DEBUG=True + +DATABASE_NAME=defaultdb +DATABASE_USER=doadmin +DATABASE_PASSWORD=DYQV_ytjHR2c4FDOh1jjgswf +DATABASE_HOST=db-postgres-proyecto-t5-do-user-16438607-0.c.db.ondigitalocean.com +DATABASE_PORT=25060 + +EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend +EMAIL_HOST=mail.sebastiandiazdev.com +EMAIL_PORT=465 +EMAIL_USE_SSL=True +EMAIL_HOST_USER=no-reply@sebastiandiazdev.com +EMAIL_HOST_PASSWORD=w=!56S93oK$h diff --git a/hiring_module/Dockerfile copy b/hiring_module/Dockerfile copy new file mode 100644 index 0000000..86361f6 --- /dev/null +++ b/hiring_module/Dockerfile copy @@ -0,0 +1,32 @@ +FROM python:3.10 + +WORKDIR /app + +COPY requirements.txt . + +# Instala las dependencias +RUN pip install -r requirements.txt + +# Copia el resto de los archivos al contenedor +COPY . . + +# Define las variables de entorno +ENV SECRET_KEY=django-insecure-4ht3kx09p6eqjx1&(l#d8h5qsmg(3jdgthb2aw#gz!7un41*mr +ENV DEBUG=True +ENV DATABASE_NAME=defaultdb +ENV DATABASE_USER=doadmin +ENV DATABASE_PASSWORD=DYQV_ytjHR2c4FDOh1jjgswf +ENV DATABASE_HOST=db-postgres-proyecto-t5-do-user-16438607-0.c.db.ondigitalocean.com +ENV DATABASE_PORT=25060 +ENV EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend +ENV EMAIL_HOST=mail.sebastiandiazdev.com +ENV EMAIL_PORT=465 +ENV EMAIL_USE_SSL=True +ENV EMAIL_HOST_USER=no-reply@sebastiandiazdev.com +ENV EMAIL_HOST_PASSWORD=w=!56S93oK$h + +# Expone el puerto 8000 para la aplicaciĆ³n web +EXPOSE 8000 + +# Ejecuta el comando para iniciar la aplicaciĆ³n +CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]