remove frontend files to run environment.
This commit is contained in:
parent
77ab683fb8
commit
73a7e6445b
@ -1,13 +1,4 @@
|
||||
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: ./
|
||||
@ -15,13 +6,5 @@ services:
|
||||
volumes:
|
||||
- ./tienda_ilusion:/app/
|
||||
ports:
|
||||
- "7001:9090"
|
||||
frontend:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: vuetify.Dockerfile
|
||||
volumes:
|
||||
- ./tienda_ilusion/don_confiao/frontend/don-confiao:/app/
|
||||
ports:
|
||||
- "7003:3000"
|
||||
- "7000:9090"
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
from node
|
||||
|
||||
WORKDIR /app/
|
||||
|
||||
COPY tienda_ilusion/don_confiao/frontend/don-confiao/package.json /app/
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
Loading…
Reference in New Issue
Block a user