-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3b5bb9
commit a2ab257
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |