The .l.warehack.ing subdomain is the convention for the user's local services. DNS for hai-omni-pro-ii.l.warehack.ing already resolves to the host; caddy-docker-proxy picks up the new caddy label and routes appropriately. Patched .env, .env.example, docker-compose.yml, README.md, astro.config.mjs. Container rebuilt and restarted; verified caddy-docker-proxy is serving 200 OK with 33051 bytes of rendered HTML on the internal network, and the host-level Caddy issues a 308 redirect to https:// on the new hostname.
20 lines
424 B
YAML
20 lines
424 B
YAML
services:
|
|
docs:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: ${COMPOSE_PROJECT:-hai-omni-docs}/docs:latest
|
|
container_name: ${COMPOSE_PROJECT:-hai-omni-docs}-docs
|
|
restart: unless-stopped
|
|
networks:
|
|
- caddy
|
|
expose:
|
|
- "80"
|
|
labels:
|
|
caddy: ${DOMAIN:-hai-omni-pro-ii.l.warehack.ing}
|
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
|
|
|
networks:
|
|
caddy:
|
|
external: true
|