-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (68 loc) · 2.91 KB
/
Copy pathdocker-compose.yml
File metadata and controls
71 lines (68 loc) · 2.91 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# OpenCompany — one command to run a company + its operator console.
#
# cp .env.example .env # then set OPENCOMPANY_COMPANY to the module you want
# docker compose up --build
#
# The switch is OPENCOMPANY_COMPANY: an example directory name
# (agentic_venture_capital, agentic_marketing_agency, …) or an alias (fund,
# marketing, software, studio, accelerator, law, signals, …).
name: opencompany
services:
opencompany:
build:
context: .
dockerfile: Dockerfile
args:
FEATURES: ${OPENCOMPANY_FEATURES:-}
image: opencompany:local
environment:
# Which module spins up.
OPENCOMPANY_COMPANY: ${OPENCOMPANY_COMPANY:-agentic_marketing_agency}
OPENCOMPANY_DISCOVERABLE: ${OPENCOMPANY_DISCOVERABLE:-false}
# Optional: cargo features to compile the host with (e.g. "medulla").
# Blank = the small default build; the dev overlay reads it so a key has
# a live brain to talk to.
OPENCOMPANY_FEATURES: ${OPENCOMPANY_FEATURES:-}
# Optional: unlocks live cognition. Blank = offline demo brain.
TINYHUMANS_API_KEY: ${TINYHUMANS_API_KEY:-}
# Crash reporting. Blank — the default — means no client is constructed.
# Needs `crash-reporting` in OPENCOMPANY_FEATURES above; without it the
# host says so at boot rather than pretending to report.
# See `docs/spec/runtime/crash-reporting.md`.
OPENCOMPANY_SENTRY_DSN: ${OPENCOMPANY_SENTRY_DSN:-}
OPENCOMPANY_SENTRY: ${OPENCOMPANY_SENTRY:-}
OPENCOMPANY_SENTRY_ENVIRONMENT: ${OPENCOMPANY_SENTRY_ENVIRONMENT:-}
OPENCOMPANY_SENTRY_TRACES_SAMPLE_RATE: ${OPENCOMPANY_SENTRY_TRACES_SAMPLE_RATE:-}
ports:
- "${OPENCOMPANY_PORT:-8080}:8080"
volumes:
- opencompany-data:/data
restart: unless-stopped
console:
build:
context: ./frontend
dockerfile: Dockerfile
# Build-time, not run-time: Vite bakes these into the bundle, so setting
# them in `environment` below would have no effect at all. Changing one
# needs `docker compose build console`, not a restart.
args:
VITE_SENTRY_DSN: ${VITE_SENTRY_DSN:-}
VITE_SENTRY_ENVIRONMENT: ${VITE_SENTRY_ENVIRONMENT:-}
VITE_SENTRY_TRACES_SAMPLE_RATE: ${VITE_SENTRY_TRACES_SAMPLE_RATE:-}
VITE_SENTRY_TRACE_PROPAGATION_TARGETS: ${VITE_SENTRY_TRACE_PROPAGATION_TARGETS:-}
# Without this the console's release tag has no commit in it and two
# builds are indistinguishable in Sentry. Compose cannot read git, so
# set it in `.env` or pass it inline:
# VITE_BUILD_COMMIT=$(git rev-parse HEAD) docker compose build console
VITE_BUILD_COMMIT: ${VITE_BUILD_COMMIT:-}
image: opencompany-console:local
environment:
OC_UPSTREAM: opencompany:8080
depends_on:
opencompany:
condition: service_healthy
ports:
- "${CONSOLE_PORT:-5173}:80"
restart: unless-stopped
volumes:
opencompany-data: