remove environment files.

This commit is contained in:
Mono Mono 2025-02-08 15:11:54 -05:00
parent 43756952fb
commit 2a6b3b94fe
4 changed files with 1 additions and 61 deletions

View File

@ -1,8 +0,0 @@
from python:3.12-slim
WORKDIR /app/
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
CMD ["python", "manage.py", "runserver", "0.0.0.0:9090"]

View File

@ -1,27 +1,10 @@
services:
nginx:
build:
context: ./
dockerfile: nginx.Dockerfile
ports:
- "7000:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./tienda_ilusion/don_confiao/static/frontend:/var/www/frontend/
django:
build:
context: ./
dockerfile: django.Dockerfile
volumes:
- ./tienda_ilusion:/app/
ports:
- "7001:9090"
frontend:
build:
context: ./
dockerfile: vuetify.Dockerfile
volumes:
- ./tienda_ilusion/don_confiao/frontend/don-confiao:/app/
- ./:/app/
ports:
- "7003:3000"

View File

@ -1,10 +0,0 @@
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

View File

@ -1,25 +0,0 @@
server {
listen 80;
server_name donconfiao.org;
# location /frontend {
# alias /var/www/frontend/;
# autoindex on;
# }
location /frontend {
proxy_pass http://frontend:3000/frontend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location / {
proxy_pass http://django:9090;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}