This commit is contained in:
David Arranz 2024-09-09 12:31:35 +02:00
parent 359051e0bb
commit 2fe62776d9
2 changed files with 22 additions and 16 deletions

View File

@ -13,6 +13,6 @@ https://presupuestos.uecko.com:13001 {
}
https://presupuestos.uecko.com {
root * /srv
root * /www
file_server
}

View File

@ -2,11 +2,17 @@ services:
caddy:
image: caddy:alpine
container_name: caddy
env_file: "stack.env"
build:
args:
- NODE_ENV=production
context: ./
dockerfile: Dockerfile.client
volumes:
- ./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:/srv
#- shared_frontend:/srv
ports:
- 80:80 # Puerto HTTP (Caddy lo redirige automáticamente a HTTPS)
- 443:443 # Puerto HTTPS
@ -71,22 +77,22 @@ services:
condition: service_completed_successfully
restart: on-failure
frontend:
env_file: "stack.env"
build:
args:
- NODE_ENV=production
context: ./
dockerfile: Dockerfile.client
environment:
- NODE_ENV=production
volumes:
- shared_frontend:/www
networks:
- reverse_proxy
# frontend:
# env_file: "stack.env"
# build:
# args:
# - NODE_ENV=production
# context: ./
# dockerfile: Dockerfile.client
# environment:
# - NODE_ENV=production
# volumes:
# - shared_frontend:/www
# networks:
# - reverse_proxy
volumes:
shared_frontend:
#shared_frontend:
caddy_data:
caddy_config:
mariadb_data: