diff --git a/README.md b/README.md index 390a9d8..0fc34ae 100644 --- a/README.md +++ b/README.md @@ -25,15 +25,16 @@ services: koncad: image: git.d4nn13.de/d4nn13/koncad:latest restart: unless-stopped - ports: - - "8080:80" volumes: - koncad_data:/data - /opt/caddy:/caddy:ro environment: + # Caddy admin API reachable on the shared Docker network. CADDY_ADMIN_URL: http://caddy:2019 + # Read-only source Caddyfile from your existing Caddy setup. CADDYFILE_IMPORT: /caddy/Caddyfile networks: + # Join the same external Docker network as your Caddy container. - caddy-network volumes: @@ -41,6 +42,7 @@ volumes: networks: caddy-network: + # Use the pre-existing network your Caddy container already uses. external: true ``` @@ -65,7 +67,7 @@ docker compose up -d docker compose pull && docker compose up -d ``` -KonCad is available at `http://:8080`. +Expose KonCad through your existing Caddy setup on the shared Docker network. On first load it imports your existing Caddyfile (read-only). After the first deploy, KonCad manages its own copy. diff --git a/docker-compose.yml b/docker-compose.yml index c4153ca..ba1b0b6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,15 +3,16 @@ services: koncad: image: git.d4nn13.de/d4nn13/koncad:latest restart: unless-stopped - ports: - - "8080:80" volumes: - koncad_data:/data - /opt/caddy:/caddy:ro environment: + # Caddy admin API reachable on the shared Docker network. CADDY_ADMIN_URL: http://caddy:2019 + # Read-only source Caddyfile from your existing Caddy setup. CADDYFILE_IMPORT: /caddy/Caddyfile networks: + # Join the same external Docker network as your Caddy container. - caddy-network volumes: @@ -19,4 +20,5 @@ volumes: networks: caddy-network: + # Use the pre-existing network your Caddy container already uses. external: true