remove environment files.
This commit is contained in:
parent
43756952fb
commit
2a6b3b94fe
@ -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"]
|
|
@ -1,27 +1,10 @@
|
|||||||
services:
|
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:
|
frontend:
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: vuetify.Dockerfile
|
dockerfile: vuetify.Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ./tienda_ilusion/don_confiao/frontend/don-confiao:/app/
|
- ./:/app/
|
||||||
ports:
|
ports:
|
||||||
- "7003:3000"
|
- "7003:3000"
|
||||||
|
|
||||||
|
@ -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
|
|
25
nginx.conf
25
nginx.conf
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user