Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix(self-host): publish caddy ports in host mode so ACME HTTP-01 works
Sidwebworksd9c07017ade5
diff --git a/contrib/deploying/simple-docker-caddy/docker-compose.prod.yml b/contrib/deploying/simple-docker-caddy/docker-compose.prod.ymlindex 3a13a9ad91..8161a96047 100644--- a/contrib/deploying/simple-docker-caddy/docker-compose.prod.yml+++ b/contrib/deploying/simple-docker-caddy/docker-compose.prod.yml@@ -131,17 +131,23 @@ services:caddy:image: caddy:2-alpinenetworks: [internal]+ # mode: host (NOT ingress): caddy binds :80/:443 directly on the host NIC. The+ # Swarm ingress mesh (IPVS) needs seconds to converge after a (re)start, but+ # caddy fires ACME immediately — so with ingress the Let's Encrypt validator hits+ # :80 before it routes and gets "connection refused", failing every cert. host+ # mode makes the port live the instant caddy starts. Single-node, single-replica,+ # so there is no multi-node routing to lose.ports:- target: 80published: 80- mode: ingress+ mode: host- target: 443published: 443- mode: ingress+ mode: host- target: 443published: 443protocol: udp- mode: ingress+ mode: hostenvironment:ERP_HOST: ${ERP_HOST}MES_HOST: ${MES_HOST}@@ -167,6 +173,11 @@ services:deploy:<<: *restartreplicas: 1+ # stop-first: with host-mode ports a new task can't bind :80/:443 while the old+ # one still holds them, so the default start-first rollout would deadlock. Brief+ # ingress blip on redeploy is acceptable for a single-node proxy.+ update_config:+ order: stop-firstresources:limits:memory: 256M