From 2a6b3b94feba369e96a044f540b6e4149b0e46f3 Mon Sep 17 00:00:00 2001 From: Mono Mono Date: Sat, 8 Feb 2025 15:11:54 -0500 Subject: [PATCH] remove environment files. --- django.Dockerfile | 8 -------- docker-compose.yml | 19 +------------------ nginx.Dockerfile | 10 ---------- nginx.conf | 25 ------------------------- 4 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 django.Dockerfile delete mode 100644 nginx.Dockerfile delete mode 100644 nginx.conf diff --git a/django.Dockerfile b/django.Dockerfile deleted file mode 100644 index 77a17dc..0000000 --- a/django.Dockerfile +++ /dev/null @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml index a418a7b..e591d39 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" diff --git a/nginx.Dockerfile b/nginx.Dockerfile deleted file mode 100644 index 587874a..0000000 --- a/nginx.Dockerfile +++ /dev/null @@ -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 diff --git a/nginx.conf b/nginx.conf deleted file mode 100644 index 4e1d1ec..0000000 --- a/nginx.conf +++ /dev/null @@ -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; - } -} \ No newline at end of file