Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
165 lines (156 loc) · 4.75 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
165 lines (156 loc) · 4.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
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
services:
petriflow-mcp:
image: netgrif/petriflow-mcp:1.0.0
environment:
PETRIFLOW_MODE: LOCAL
ports:
- "3000:3000"
builder:
image: netgrif/application-builder:2.1.1-rc.3
ports:
- "127.0.0.1:4300:80"
environment:
PROCESS_FILES_ENABLED: "true"
PUID: "${PUID:-}"
PGID: "${PGID:-}"
healthcheck:
test: [ "CMD", "curl", "-sf", "http://localhost:80/" ]
interval: 10s
timeout: 10s
retries: 10
volumes:
- ./processes:/data/processes:z
networks:
- netgrif-platformnet
frontend:
image: netgrif/application-engine-frontend:7.0.3
ports:
- "4200:80"
healthcheck:
test: [ "CMD", "curl", "-sf", "http://localhost:80" ]
interval: 10s
timeout: 10s
retries: 10
depends_on:
engine:
condition: service_healthy
networks:
- netgrif-platformnet
init-perms:
# The engine image runs as uid 10001 and cannot write to folders created by Docker or by you.
image: busybox:1.37
user: "0:0"
command: [ "sh", "-c", "chown -R 10001:10001 /logs /storage || echo 'chown failed, continuing'" ]
volumes:
- ./nae/engine/logs:/logs:z
- ./nae/engine/storage:/storage:z
restart: "no"
networks:
- netgrif-platformnet
engine:
image: netgrif/application-engine-with-mcp:7.0.3
ports:
- "8080:8080"
environment:
netgrif.engine.server.port: 8080
NETGRIF_ENGINE_DATA_DATABASE_NAME: netgrif_nae_root
NETGRIF_ENGINE_DATA_MONGODB_URI: mongodb://nae-mongodb
NETGRIF_ENGINE_DATA_ELASTIC_URL: nae-elasticsearch
NETGRIF_ENGINE_DATA_REDIS_HOST: nae-redis
NETGRIF_WORKER_NODE_NAME: NETGRIF Application Engine
NETGRIF_WORKER_NODE_HOST: nae-root-engine
NETGRIF_WORKER_NODE_NODE_TYPE: ENGINE_ROOT
netgrif.engine.data.redis.namespace: netgrif
netgrif.engine.security.auth.admin-password: password
netgrif.engine.management.endpoint.health.show-details: always
netgrif.engine.management.health.mail.enabled: false
netgrif.engine.management.health.elasticsearch.enabled: false
netgrif.otel.sdk.disabled: 'true'
netgrif.otel.traces.exporter: none
netgrif.otel.metrics.exporter: none
netgrif.otel.logs.exporter: none
netgrif.engine.security.server-patterns: /api/auth/signup,/api/auth/token/verify,/api/auth/reset,/api/auth/recover,/api/public/**,/v3/api-docs/public,/manage/health,/manage/health/liveness,/manage/health/readiness,/mcp/**
spring.ai.mcp.server.type: SYNC
spring.ai.mcp.server.protocol: streamable
spring.ai.mcp.server.name: nae-mcp
healthcheck:
test: [ "CMD", "curl", "-sf", "http://localhost:8080/manage/health" ]
interval: 10s
timeout: 10s
retries: 15
start_period: 180s
volumes:
- ./nae/engine/logs:/opt/netgrif/engine/log:z
- ./nae/engine/storage:/opt/netgrif/engine/storage:z
- ./nae/engine/modules:/opt/netgrif/engine/modules/custom:ro,z
depends_on:
init-perms:
condition: service_completed_successfully
nae-mongodb:
condition: service_healthy
nae-elasticsearch:
condition: service_healthy
nae-redis:
condition: service_healthy
networks:
- netgrif-platformnet
nae-mongodb:
image: mongo:8.0.3
command: [ "--replSet", "rs0", "--bind_ip_all", "--port", "27017" ]
hostname: 127.0.0.1
healthcheck:
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'127.0.0.1:27017'}]}) }" | mongosh --port 27017 --quiet
interval: 5s
timeout: 30s
retries: 10
deploy:
resources:
limits:
cpus: "2"
memory: "2G"
reservations:
cpus: "0.5"
memory: "512M"
ports:
- "27017:27017"
networks:
- netgrif-platformnet
nae-elasticsearch:
# image: elasticsearch:9.4.1
image: elasticsearch:8.19.15
healthcheck:
test: [ "CMD", "curl", "-sf", "http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=1s" ]
interval: 10s
timeout: 5s
retries: 10
environment:
cluster.name: elasticsearch
discovery.type: single-node
http.host: 0.0.0.0
xpack.security.enabled: false
transport.host: 0.0.0.0
deploy:
resources:
limits:
cpus: '1.5'
memory: 1500M
ports:
- "9200:9200"
- "9300:9300"
networks:
- netgrif-platformnet
nae-redis:
image: redis:8
ports:
- "6379:6379"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 10
networks:
- netgrif-platformnet
networks:
netgrif-platformnet:
driver: bridge
name: netgrif-platformnet