.
This commit is contained in:
parent
359051e0bb
commit
2fe62776d9
@ -13,6 +13,6 @@ https://presupuestos.uecko.com:13001 {
|
||||
}
|
||||
|
||||
https://presupuestos.uecko.com {
|
||||
root * /srv
|
||||
root * /www
|
||||
file_server
|
||||
}
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user