-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
47 lines (44 loc) · 1.86 KB
/
Copy pathcompose.dev.yml
File metadata and controls
47 lines (44 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Local development override — builds images from source instead of pulling
#
# Preferred usage:
# bun run dev:build
#
# Manual equivalent (from project root):
# docker compose --project-directory . \
# -f .openpalm/config/stack/core.compose.yml \
# -f compose.dev.yml \
# --env-file .dev/knowledge/env/stack.env \
# up --build -d
#
# The --project-directory . flag is REQUIRED when the core compose file lives
# in a different directory (.openpalm/config/stack/ or .dev/config/stack/).
# Without it, Docker Compose resolves build contexts relative to the first -f
# file's directory, which breaks builds.
services:
guardian:
build:
context: .
dockerfile: containers/guardian/Dockerfile
args:
# The guardian Dockerfile bakes @openpalm/guardian@${GUARDIAN_VERSION}
# at build time and hard-fails (`test -n`) if it is empty. Compose does
# not forward host env into ARGs unless declared here. Callers that need
# an exact version (the rootless smoke fixture, release builds) export
# GUARDIAN_VERSION; a bare `bun run dev:build` falls back to the latest
# published guardian, which keeps the guard satisfied.
GUARDIAN_VERSION: ${GUARDIAN_VERSION:-latest}
image: ${OP_IMAGE_NAMESPACE:-openpalm}/guardian:dev
# Guardian is intentionally NOT host-published. It is reachable only on
# the portal_net / assistant_net networks as `http://guardian:8080`.
# Manual smoke tests that previously hit a host-published port must
# either run inside the network or use `docker exec openpalm-guardian-1`.
assistant:
build:
context: .
dockerfile: containers/assistant/Dockerfile
image: ${OP_IMAGE_NAMESPACE:-openpalm}/assistant:dev
portal:
build:
context: .
dockerfile: containers/portal/Dockerfile
image: ${OP_IMAGE_NAMESPACE:-openpalm}/portal:dev