.
This commit is contained in:
parent
ef02d030cc
commit
bc48128743
@ -32,6 +32,9 @@ FROM node:lts-iron AS prod
|
||||
|
||||
WORKDIR /www
|
||||
|
||||
RUN pwd && ls -la
|
||||
RUN rm -rf .
|
||||
|
||||
# Copiar los archivos del build desde la fase anterior
|
||||
COPY --from=builder /www/client/dist .
|
||||
CMD pwd && ls -la
|
||||
|
||||
@ -7,7 +7,7 @@ services:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile # Monta el archivo de configuración
|
||||
- caddy_data:/data # Almacena los certificados en este volumen
|
||||
- caddy_config:/config # Configuración de Caddy
|
||||
- shared_frontend:/www
|
||||
- shared_frontend:/www:ro
|
||||
ports:
|
||||
- 80:80 # Puerto HTTP (Caddy lo redirige automáticamente a HTTPS)
|
||||
- 443:443 # Puerto HTTPS
|
||||
@ -78,7 +78,7 @@ services:
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
volumes:
|
||||
- shared_frontend:/www
|
||||
- shared_frontend:/www:rw
|
||||
networks:
|
||||
- reverse_proxy
|
||||
depends_on:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user