-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.75 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
# AgentOS Workspace runtime — local self-host with real Docker secrets.
#
# Demonstrates the FileSecretsProvider path: secrets are mounted as
# files under /run/secrets (the Docker / Fly / Railway convention),
# the runtime is started with `--secrets-dir /run/secrets`, and the
# session key + MemWal delegate are NEVER baked into the image or the
# env file.
#
# Usage:
# 1. Drop your session key bytes into `./secrets/session-key`
# (either a suiprivkey… string, the .key JSON, or 32 base64 bytes).
# Optional: `./secrets/memwal-delegate` with 64-char hex.
# 2. Set AGENTOS_PACKAGE_ID + AGENTOS_AGENT_ID in `.env`.
# 3. `docker compose up --build`.
#
# To run a single tick instead of the continuous loop:
# docker compose run --rm runtime --once --secrets-dir /run/secrets
#
# Multi-vault: copy this file to `docker-compose.vault-<id>.yml` per
# vault, change the service name + secret file paths. Each vault gets
# its own container; only the secrets differ.
services:
runtime:
build:
context: .
dockerfile: sdk/packages/workspace/Dockerfile
image: agentos-workspace-runtime:local
restart: unless-stopped
command: ["--secrets-dir", "/run/secrets"]
env_file:
- .env
# Keep secrets OUT of the env file. They are mounted as files
# under /run/secrets — the FileSecretsProvider reads them on boot.
secrets:
- session-key
- memwal-delegate
# Tiny vault — operational footprint is well under 256 MB.
deploy:
resources:
limits:
memory: 512M
cpus: "0.5"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
secrets:
session-key:
file: ./secrets/session-key
memwal-delegate:
file: ./secrets/memwal-delegate