From 2a91ccc110ba741530462f26dc4051b31f373373 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 3 May 2026 18:34:38 +0200 Subject: [PATCH] Remove compose port mapping and document network env --- README.md | 8 +++++--- docker-compose.yml | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) 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