-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
135 lines (125 loc) · 3.06 KB
/
docker-compose.yml
File metadata and controls
135 lines (125 loc) · 3.06 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.8'
services:
# Main application service
app:
build:
context: .
target: development
container_name: everything-opencode-dev
ports:
- '3000:3000' # Debug Server
- '3001:3001' # Additional services
volumes:
- .:/app
- /app/node_modules
environment:
NODE_ENV: development
DEBUG: 'everything-opencode:*'
command: npm run dev
healthcheck:
test: ['CMD', 'node', 'scripts/verify-installation.js']
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# PineScript Optimizer service
optimizer:
build:
context: .
target: pinescript-optimizer
container_name: pinescript-optimizer
ports:
- '3002:3002'
volumes:
- ./test-data:/app/test-data
environment:
NODE_ENV: development
OPTIMIZER_PORT: 3002
command: node scripts/pinescript/optimizer.js --server --port 3002
# Debug Server service
debug-server:
build:
context: .
target: debug-server
container_name: debug-server
ports:
- '3003:3000'
volumes:
- ./test-data:/app/test-data
environment:
NODE_ENV: development
DEBUG_SERVER_PORT: 3000
command: node scripts/pinescript/debug-server.js --port 3000
# TemplateUtils service
template-utils:
build:
context: .
target: template-utils
container_name: template-utils
environment:
NODE_ENV: development
command: node -e "const TemplateUtils = require('./scripts/lib/template-utils'); console.log('TemplateUtils service ready')"
# Command Runner service
command-runner:
build:
context: .
target: command-runner
container_name: command-runner
volumes:
- ./projects:/app/projects
environment:
NODE_ENV: development
command: node scripts/clojure/command-runner.js --help
# Database for testing (if needed)
# postgres:
# image: postgres:15-alpine
# container_name: everything-opencode-db
# ports:
# - "5432:5432"
# environment:
# POSTGRES_USER: opencode
# POSTGRES_PASSWORD: opencode123
# POSTGRES_DB: everything_opencode
# volumes:
# - postgres_data:/var/lib/postgresql/data
# Redis for caching (if needed)
# redis:
# image: redis:7-alpine
# container_name: everything-opencode-cache
# ports:
# - "6379:6379"
# volumes:
# - redis_data:/data
# Monitoring service
monitoring:
image: grafana/grafana:latest
container_name: everything-opencode-monitoring
ports:
- '3004:3000'
environment:
GF_SECURITY_ADMIN_PASSWORD: admin
volumes:
- grafana_data:/var/lib/grafana
depends_on:
- app
# Test runner service
test-runner:
build:
context: .
target: development
container_name: test-runner
volumes:
- .:/app
- /app/node_modules
environment:
NODE_ENV: test
command: npm test
depends_on:
- app
- optimizer
- debug-server
# Volumes for persistent data
volumes:
postgres_data:
redis_data:
grafana_data: