forked from golemcloud/golem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-sqlite.yaml
More file actions
169 lines (162 loc) · 6.82 KB
/
docker-compose-sqlite.yaml
File metadata and controls
169 lines (162 loc) · 6.82 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
services:
router:
image: golemservices/golem-router:latest
pull_policy: always
ports:
- "${GOLEM_ROUTER_PORT}:80"
environment:
- GOLEM_COMPONENT_MAX_SIZE_ALLOWED=${GOLEM_ROUTER_COMPONENT_MAX_SIZE_ALLOWED}
- GOLEM_WORKER_SERVICE_HOST=golem-worker-service
- GOLEM_WORKER_SERVICE_PORT=${WORKER_SERVICE_HTTP_PORT}
- GOLEM_COMPONENT_SERVICE_HOST=golem-component-service
- GOLEM_COMPONENT_SERVICE_PORT=${COMPONENT_SERVICE_HTTP_PORT}
depends_on:
- golem-worker-service
- golem-component-service
- golem-shard-manager
redis:
image: redis:latest
volumes:
- redis_data:/data
command: --port ${REDIS_PORT}
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
golem-shard-manager:
image: golemservices/golem-shard-manager:latest
pull_policy: always
environment:
- WASMTIME_BACKTRACE_DETAILS=1
- RUST_BACKTRACE=1
- RUST_LOG=info,h2=warn,hyper=warn,tower=warn
- GOLEM__PERSISTENCE__TYPE="Redis"
- GOLEM__PERSISTENCE__CONFIG__HOST=redis
- GOLEM__PERSISTENCE__CONFIG__PORT=${REDIS_PORT}
- GOLEM__HTTP_PORT=${SHARD_MANAGER_HTTP_PORT}
- GOLEM_SHARD_MANAGER_PORT=${SHARD_MANAGER_GRPC_PORT}
depends_on:
- redis
golem-component-service:
image: golemservices/golem-component-service:latest
pull_policy: always
environment:
- ENVIRONMENT=local
- WASMTIME_BACKTRACE_DETAILS=1
- RUST_BACKTRACE=1
- RUST_LOG=info,h2=warn,hyper=warn,tower=warn
- GOLEM__COMPONENT_STORE__TYPE="Local"
- GOLEM__COMPONENT_STORE__CONFIG__OBJECT_PREFIX=""
- GOLEM__COMPONENT_STORE__CONFIG__ROOT_PATH=/component_store
- GOLEM__COMPILATION__TYPE="Enabled"
- GOLEM__COMPILATION__CONFIG__HOST=golem-component-compilation-service
- GOLEM__COMPILATION__CONFIG__PORT=${COMPONENT_COMPILATION_SERVICE_GRPC_PORT}
- GOLEM__DB__TYPE=Sqlite
- GOLEM__DB__CONFIG__DATABASE=/app/golem_db/golem_component.sqlite
- GOLEM__DB__CONFIG__MAX_CONNECTIONS=10
- GOLEM__GRPC_PORT=${COMPONENT_SERVICE_GRPC_PORT}
- GOLEM__HTTP_PORT=${COMPONENT_SERVICE_HTTP_PORT}
volumes:
- component_store:/component_store
- golem_db:/app/golem_db
ports:
- "${COMPONENT_SERVICE_HTTP_PORT}:${COMPONENT_SERVICE_HTTP_PORT}"
- "${COMPONENT_SERVICE_GRPC_PORT}:${COMPONENT_SERVICE_GRPC_PORT}"
golem-worker-service:
image: golemservices/golem-worker-service:latest
pull_policy: always
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info,h2=warn,hyper=warn,tower=warn
- GOLEM__DB__TYPE=Sqlite
- GOLEM__DB__CONFIG__DATABASE=/app/golem_db/golem_worker.sqlite
- GOLEM__DB__CONFIG__MAX_CONNECTIONS=10
- GOLEM__ENVIRONMENT=local
- GOLEM__COMPONENT_SERVICE__HOST=golem-component-service
- GOLEM__COMPONENT_SERVICE__PORT=${COMPONENT_SERVICE_GRPC_PORT}
- GOLEM__COMPONENT_SERVICE__ACCESS_TOKEN="5C832D93-FF85-4A8F-9803-513950FDFDB1"
- GOLEM__GATEWAY_SESSION_STORAGE__TYPE="Redis"
- GOLEM__GATEWAY_SESSION_STORAGE__CONFIG__PORT=${REDIS_PORT}
- GOLEM__GATEWAY_SESSION_STORAGE__CONFIG__HOST=redis
- GOLEM__ROUTING_TABLE__HOST="golem-shard-manager"
- GOLEM__ROUTING_TABLE__PORT=${SHARD_MANAGER_GRPC_PORT}
- GOLEM__CUSTOM_REQUEST_PORT=${WORKER_SERVICE_CUSTOM_REQUEST_PORT}
- GOLEM__PORT=${WORKER_SERVICE_HTTP_PORT}
- GOLEM__WORKER_GRPC_PORT=${WORKER_SERVICE_GRPC_PORT}
ports:
- "${WORKER_SERVICE_HTTP_PORT}:${WORKER_SERVICE_HTTP_PORT}"
- "${WORKER_SERVICE_CUSTOM_REQUEST_PORT}:${WORKER_SERVICE_CUSTOM_REQUEST_PORT}"
- "${WORKER_SERVICE_GRPC_PORT}:${WORKER_SERVICE_GRPC_PORT}"
volumes:
- golem_db:/app/golem_db
depends_on:
- redis
- golem-worker-executor
- golem-component-service
- golem-shard-manager
golem-component-compilation-service:
image: golemservices/golem-component-compilation-service:latest
pull_policy: always
environment:
- RUST_BACKTRACE=1
- RUST_LOG=info,h2=warn,hyper=warn,tower=warn
- GOLEM__COMPONENT_SERVICE__HOST=golem-component-service
- GOLEM__COMPONENT_SERVICE__PORT=${COMPONENT_SERVICE_GRPC_PORT}
- GOLEM__COMPONENT_SERVICE__ACCESS_TOKEN="5C832D93-FF85-4A8F-9803-513950FDFDB1"
- GOLEM__COMPILED_COMPONENT_SERVICE__TYPE="Enabled"
- GOLEM__BLOB_STORAGE__TYPE="LocalFileSystem"
- GOLEM__BLOB_STORAGE__CONFIG__ROOT="/worker_executor_store"
- GOLEM__HTTP_PORT=${COMPONENT_COMPILATION_SERVICE_HTTP_PORT}
- GOLEM__GRPC_PORT=${COMPONENT_COMPILATION_SERVICE_GRPC_PORT}
volumes:
- worker_executor_store:/worker_executor_store
ports:
- "${COMPONENT_COMPILATION_SERVICE_HTTP_PORT}:${COMPONENT_COMPILATION_SERVICE_HTTP_PORT}"
- "${COMPONENT_COMPILATION_SERVICE_GRPC_PORT}:${COMPONENT_COMPILATION_SERVICE_GRPC_PORT}"
depends_on:
- golem-component-service
golem-worker-executor:
image: golemservices/golem-worker-executor:latest
pull_policy: always
environment:
- ENVIRONMENT=local
- WASMTIME_BACKTRACE_DETAILS=1
- RUST_BACKTRACE=1
- RUST_LOG=info
- GOLEM__KEY_VALUE_STORAGE__TYPE="Redis"
- GOLEM__KEY_VALUE_STORAGE__CONFIG__PORT=${REDIS_PORT}
- GOLEM__KEY_VALUE_STORAGE__CONFIG__HOST=redis
- GOLEM__INDEXED_STORAGE__TYPE="KVStoreRedis"
- GOLEM__BLOB_STORAGE__TYPE="LocalFileSystem"
- GOLEM__BLOB_STORAGE__CONFIG__ROOT="/worker_executor_store"
- GOLEM__COMPONENT_SERVICE__CONFIG__HOST=golem-component-service
- GOLEM__COMPONENT_SERVICE__CONFIG__PORT=${COMPONENT_SERVICE_GRPC_PORT}
- GOLEM__COMPONENT_SERVICE__CONFIG__ACCESS_TOKEN="2A354594-7A63-4091-A46B-CC58D379F677"
- GOLEM__PORT=${WORKER_EXECUTOR_GRPC_PORT}
- GOLEM__HTTP_PORT=${WORKER_EXECUTOR_HTTP_PORT}
- GOLEM__SHARD_MANAGER_SERVICE__CONFIG__HOST=golem-shard-manager
- GOLEM__SHARD_MANAGER_SERVICE__CONFIG__PORT=${SHARD_MANAGER_GRPC_PORT}
- GOLEM__SHARD_MANAGER_SERVICE__CONFIG__RETRIES__MAX_ATTEMPTS=5
- GOLEM__SHARD_MANAGER_SERVICE__CONFIG__RETRIES__MIN_DELAY="100ms"
- GOLEM__SHARD_MANAGER_SERVICE__CONFIG__RETRIES__MAX_DELAY="2s"
- GOLEM__SHARD_MANAGER_SERVICE__CONFIG__RETRIES__MULTIPLIER=2
- GOLEM__PUBLIC_WORKER_API__HOST=golem-worker-service
- GOLEM__PUBLIC_WORKER_API__PORT=${WORKER_SERVICE_GRPC_PORT}
- GOLEM__PUBLIC_WORKER_API__ACCESS_TOKEN="2A354594-7A63-4091-A46B-CC58D379F677"
- GOLEM__COMPILED_COMPONENT_SERVICE__TYPE="Enabled"
- GOLEM__SHARD_MANAGER_SERVICE__TYPE="Grpc"
volumes:
- worker_executor_store:/worker_executor_store
ports:
- "${WORKER_EXECUTOR_HTTP_PORT}:${WORKER_EXECUTOR_HTTP_PORT}"
depends_on:
- redis
- golem-shard-manager
- golem-component-service
volumes:
redis_data:
driver: local
component_store:
driver: local
golem_db:
driver: local
worker_executor_store:
driver: local