Skip to content

Commit 00fdcb8

Browse files
committed
Add aquila service configuration
1 parent 3f83fcd commit 00fdcb8

3 files changed

Lines changed: 35 additions & 1 deletion

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"runtimes": [
3+
{
4+
"identifier": "taurus",
5+
"token": "<%= env('TAURUS_AQUILA_TOKEN') %>"
6+
},
7+
{
8+
"identifier": "draco-rest",
9+
"token": "<%= env('DRACO_REST_AQUILA_TOKEN') %>"
10+
},
11+
{
12+
"identifier": "draco-cron",
13+
"token": "<%= env('DRACO_CRON_AQUILA_TOKEN') %>"
14+
}
15+
]
16+
}

docker-compose/.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ AQUILA_SAGITTARIUS_URL=http://nginx:80
1414
AQUILA_SAGITTARIUS_TOKEN=
1515
DRACO_REST_PORT=8084
1616

17+
TAURUS_AQUILA_TOKEN=taurus
18+
DRACO_REST_AQUILA_TOKEN=draco-rest
19+
DRACO_CRON_AQUILA_TOKEN=draco-cron
20+
1721
# Active services
1822
COMPOSE_PROFILES=ide,runtime
1923

docker-compose/docker-compose.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ services:
1010
restart: "no"
1111
profiles:
1212
- ide
13+
- runtime
1314

1415
postgres:
1516
image: postgres:16.1
@@ -129,7 +130,10 @@ services:
129130

130131
aquila:
131132
depends_on:
132-
- nats
133+
config-generator:
134+
condition: service_completed_successfully
135+
nats:
136+
condition: service_started
133137
image: ${IMAGE_REGISTRY}/aquila:${IMAGE_TAG}
134138
environment:
135139
MODE: dynamic
@@ -138,6 +142,13 @@ services:
138142
GRPC_HOST: 0.0.0.0
139143
SAGITTARIUS_URL: "${AQUILA_SAGITTARIUS_URL}"
140144
RUNTIME_TOKEN: "${AQUILA_SAGITTARIUS_TOKEN}"
145+
volumes:
146+
- generated-configs:/tmp/generated-configs:ro
147+
entrypoint: |
148+
sh -c "
149+
cp /tmp/generated-configs/aquila.service.configuration.json /service.configuration.json
150+
exec /aquila
151+
"
141152
restart: unless-stopped
142153
profiles:
143154
- runtime
@@ -152,6 +163,7 @@ services:
152163
AQUILA_URL: 'http://aquila:8081'
153164
NATS_URL: nats://nats:4222
154165
DEFINITION_PATH: '/definitions'
166+
AQUILA_TOKEN: "${TAURUS_AQUILA_TOKEN}"
155167
restart: unless-stopped
156168
profiles:
157169
- runtime
@@ -168,6 +180,7 @@ services:
168180
DEFINITION_PATH: '/definitions'
169181
HTTP_SERVER_PORT: 8084
170182
HTTP_SERVER_HOST: "0.0.0.0"
183+
AQUILA_TOKEN: "${DRACO_REST_AQUILA_TOKEN}"
171184
ports:
172185
- "${DRACO_REST_PORT}:8084"
173186
restart: unless-stopped
@@ -184,6 +197,7 @@ services:
184197
NATS_URL: nats://nats:4222
185198
NATS_BUCKET: 'flow_store'
186199
DEFINITION_PATH: '/definitions'
200+
AQUILA_TOKEN: "${DRACO_CRON_AQUILA_TOKEN}"
187201
restart: unless-stopped
188202
profiles:
189203
- runtime

0 commit comments

Comments
 (0)