This commit is contained in:
David Arranz 2024-09-09 12:36:15 +02:00
parent 2fe62776d9
commit e7c8df1eb8

View File

@ -2,17 +2,11 @@ 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:/www
ports:
- 80:80 # Puerto HTTP (Caddy lo redirige automáticamente a HTTPS)
- 443:443 # Puerto HTTPS
@ -77,22 +71,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: