ci(Dev): Using docker to serve django and vue on same host.

This commit is contained in:
2024-09-28 14:04:13 -05:00
parent a7147d1850
commit 2c8911fb78
5 changed files with 56 additions and 1 deletions

10
nginx.Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM nginx:latest
# Copiamos el archivo de configuración NGINX
COPY nginx.conf /etc/nginx/conf.d/default.conf
# Establecemos la variable de entorno para el proxy inverso
ENV DJANGO_PROXY_URL http://django:8000
# Creamos un directorio estático
RUN mkdir -p /var/www/frontend