fix(deploy): use repo-root build context in coolify compose
Coolify invokes `docker compose` with --project-directory set to the repository root, not this file's directory. Previous `context: ..` was resolving to /artifacts (one level above the repo) and failing with `resolve : lstat /artifacts/docker: no such file or directory`. Switch all three services (web, collab, mcp) to `context: .` so the build context is the repo root and `dockerfile: docker/Dockerfile.X` resolves correctly. Made-with: Cursor
This commit is contained in:
parent
663bc77afe
commit
0cf1e6f317
1 changed files with 8 additions and 4 deletions
|
|
@ -7,16 +7,20 @@
|
||||||
# - Set domains in Coolify on the `web` and `collab` services using http://
|
# - Set domains in Coolify on the `web` and `collab` services using http://
|
||||||
# (CT 100 Traefik handles TLS termination per AGENT-DEPLOY.md)
|
# (CT 100 Traefik handles TLS termination per AGENT-DEPLOY.md)
|
||||||
#
|
#
|
||||||
|
# Path conventions:
|
||||||
|
# Coolify invokes `docker compose` with --project-directory set to the
|
||||||
|
# repository root, NOT this file's directory. So all build contexts and
|
||||||
|
# dockerfile paths below are written relative to the repo root.
|
||||||
|
#
|
||||||
# Differences vs. docker/docker-compose.yml:
|
# Differences vs. docker/docker-compose.yml:
|
||||||
# - No bundled postgres / redis (uses shared CT 102 services)
|
# - No bundled postgres / redis (uses shared CT 102 services)
|
||||||
# - No host port mappings (Coolify's Traefik routes by container labels)
|
# - No host port mappings (Coolify's Traefik routes by container labels)
|
||||||
# - Uses Coolify SERVICE_FQDN_* magic env vars so Coolify auto-wires Traefik labels
|
# - Uses Coolify SERVICE_FQDN_* magic env vars so Coolify auto-wires Traefik labels
|
||||||
# - Build context is the repository root (Coolify clones the whole repo there)
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: .
|
||||||
dockerfile: docker/Dockerfile.web
|
dockerfile: docker/Dockerfile.web
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -64,7 +68,7 @@ services:
|
||||||
|
|
||||||
collab:
|
collab:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: .
|
||||||
dockerfile: docker/Dockerfile.collab
|
dockerfile: docker/Dockerfile.collab
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -91,7 +95,7 @@ services:
|
||||||
# for future HTTP/SSE transport. Comment the whole block out if not needed.
|
# for future HTTP/SSE transport. Comment the whole block out if not needed.
|
||||||
mcp:
|
mcp:
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: .
|
||||||
dockerfile: docker/Dockerfile.mcp
|
dockerfile: docker/Dockerfile.mcp
|
||||||
args:
|
args:
|
||||||
MCP_SERVER_PORT: ${MCP_SERVER_PORT:-3001}
|
MCP_SERVER_PORT: ${MCP_SERVER_PORT:-3001}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue