diff --git a/Caddyfile b/Caddyfile index a6223e3..5dce074 100644 --- a/Caddyfile +++ b/Caddyfile @@ -13,6 +13,6 @@ https://presupuestos.uecko.com:13001 { } https://presupuestos.uecko.com { - root * /srv + root * /www file_server } \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 188a451..f7166aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: