Skip to content

Commit

Permalink
TEST: itegration login as admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian-411 committed Apr 29, 2024
1 parent d3b5bb9 commit a2ab257
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hiring_module/.example.env
Original file line number Diff line number Diff line change
@@ -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=[email protected]
EMAIL_HOST_PASSWORD=w=!56S93oK$h
32 changes: 32 additions & 0 deletions hiring_module/Dockerfile copy
Original file line number Diff line number Diff line change
@@ -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 protected]
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"]

0 comments on commit a2ab257

Please sign in to comment.