mirror of
https://github.com/Cian-H/iform-invenio.git
synced 2025-12-22 20:41:56 +00:00
Updated container definitions for deployment via docker compose
This commit is contained in:
14
caddy/Caddyfile
Normal file
14
caddy/Caddyfile
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
admin off
|
||||
}
|
||||
|
||||
am-d-model.eu {
|
||||
tls internal
|
||||
|
||||
reverse_proxy site:3000 {
|
||||
health_uri /health
|
||||
health_interval 30s
|
||||
health_timeout 10s
|
||||
health_status 200
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ services:
|
||||
restart: unless-stopped
|
||||
|
||||
caddy:
|
||||
image: caddy:latest
|
||||
image: docker.io/library/caddy:latest
|
||||
depends_on:
|
||||
- site
|
||||
networks:
|
||||
@@ -24,10 +24,10 @@ services:
|
||||
volumes:
|
||||
- caddy_data:/data
|
||||
- caddy_config:/config
|
||||
command: >
|
||||
sh -c "wget -O /etc/caddy/Caddyfile https://raw.githubusercontent.com/Cian-H/am-d-model.eu/refs/heads/main/conf/Caddyfile &&
|
||||
caddy run --config /etc/caddy/Caddyfile"
|
||||
- ./caddy:/etc/caddy
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "io.containers.autoupdate=registry"
|
||||
|
||||
volumes:
|
||||
caddy_data:
|
||||
|
||||
Reference in New Issue
Block a user