-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (106 loc) · 3.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
112 lines (106 loc) · 3.23 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# GIS local dev — world0, world1, world6 share this file (world9 uses docker-compose.world9.yml).
#
# Ghost starts idle (no world) unless GHOST_CONFIG or --world-config is set. Config discovery uses
# GHOST_CONFIG_DIR (default /app/config in container). Load a world via dashboard or POST /api/admin/worlds/load.
# Optional boot-time world: set GHOST_CONFIG=/app/config/<file>.yaml in .env.ghost (or pass command below).
# Storage paths /mnt/data/<world_id>, etc. come from world_id inside that YAML (see cmd/ghost + config).
#
# From repo root: WORLD=world1 make up
# Raw compose: docker compose -f docker/docker-compose.yml up -d
#
# Ports: Ghost 2368 · Dashboard 5173 · Postgres 5438 · Devtools 9092
# Shared named volumes (gis_*); docker compose down before switching stacks that use the same Postgres data.
name: gis-local
services:
ghost-db:
image: postgres:17
environment:
POSTGRES_DB: ghost
POSTGRES_USER: ghost
POSTGRES_PASSWORD: ghost
volumes:
- ghost_postgres_data:/var/lib/postgresql/data
ports:
- "5438:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ghost"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
ghost:
build:
context: ..
dockerfile: docker/Dockerfile
ports:
- "2368:2368"
volumes:
- ghost_data:/mnt/data
- agent_workspace:/mnt/workspace
- artifact_repos:/mnt/repos
- ../config:/app/config:ro
- ../toolbox:/app/toolbox:ro
- ../architect:/app/architect:ro
- ../prompt_debug:/mnt/prompt_debug
env_file:
- env.ghost
environment:
- GHOST_CONFIG_DIR=/app/config
- DATABASE_URL=postgres://ghost:ghost@ghost-db:5432/ghost?sslmode=disable
- SESSION_SECRET=dev-session-secret-change-me
- GHOST_LOG_LEVEL=info
- GIS_ADMIN_CORS_ORIGINS=http://localhost:5173,http://127.0.0.1:5173,http://localhost:5174,http://127.0.0.1:5174
depends_on:
ghost-db:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:2368/healthz"]
interval: 10s
timeout: 5s
retries: 5
dashboard:
build:
context: ../dashboard
dockerfile: Dockerfile
args:
LOCAL_GHOST_SERVER_URL: http://localhost:2368
env_file:
- env.ghost
environment:
- GIS_DASHBOARD_PUBLIC_URL=http://localhost:5173
ports:
- "5173:80"
depends_on:
ghost:
condition: service_healthy
restart: unless-stopped
toolbox-devtools:
build:
context: ..
dockerfile: toolbox/devtools/Dockerfile
privileged: true
ports:
- "9092:9090"
volumes:
- agent_workspace:/mnt/workspace
- artifact_repos:/mnt/repos
- ../config:/app/config:ro
- ../architect/cursor-config:/mnt/shared-readonly/cursor-config:ro
env_file:
- env.ghost
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9090/healthz"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
volumes:
ghost_postgres_data:
name: gis_ghost_pgdata
ghost_data:
name: gis_ghost_data
agent_workspace:
name: gis_agent_workspace
artifact_repos:
name: gis_artifact_repos