Skip to content

Commit 78b5a46

Browse files
committed
WIP
1 parent 6db845d commit 78b5a46

File tree

1 file changed

+38
-5
lines changed

1 file changed

+38
-5
lines changed

docker-compose.yaml

+38-5
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,60 @@ services:
2727
environment:
2828
RABBITMQ_DEFAULT_USER: trento
2929
RABBITMQ_DEFAULT_PASS: trento
30+
wanda:
31+
image: ghcr.io/trento-project/trento-wanda:rolling
32+
environment:
33+
DATABASE_URL: ecto://postgres:postgres@postgres/postgres
34+
SECRET_KEY_BASE: dummyS3cr3t
35+
AMQP_URL: amqp://trento:trento@rabbitmq
36+
CORS_ENABLED: "true"
37+
CORS_ORIGIN: "http://localhost:4000"
38+
# CATALOG_PATH: /app/catalog
39+
JWT_AUTHENTICATION_ENABLED: "false"
40+
depends_on:
41+
- postgres
42+
- rabbitmq
43+
ports:
44+
- 4001:4000
45+
entrypoint: /bin/sh -c "/app/bin/wanda eval \"Wanda.Release.init()\" && /app/bin/wanda start"
46+
# volumes:
47+
# - ./priv/catalog/:/app/catalog:rw
3048
node01:
3149
profiles: ['agents']
3250
image: ghcr.io/trento-project/barbecue-hana_node01:latest
3351
hostname: hana_node01
34-
network_mode: host
52+
depends_on:
53+
- rabbitmq
54+
# network_mode: host
3555
command:
3656
- --api-key
3757
- some-random-string
3858
- --facts-service-url
39-
- amqp://wanda:wanda@localhost:5674
59+
- amqp://trento:trento@localhost:5673
4060
- --server-url
4161
- http://localhost:4000
4262
node02:
4363
profiles: ['agents']
4464
image: ghcr.io/trento-project/barbecue-hana_node02:latest
45-
hostname: hana_node02
65+
# hostname: hana_node02
66+
healthcheck:
67+
test: curl -f http://localhost:4000/api/readyz || exit 1
68+
interval: 30s
69+
timeout: 10s
70+
retries: 3
71+
start_period: 5m
72+
start_interval: 3m
73+
depends_on:
74+
- rabbitmq
4675
network_mode: host
76+
# extra_hosts:
77+
# - localhost:host-gateway
78+
# --add-host=localhost:host-gateway
79+
# --hostname=hana_node02
4780
command:
4881
- --api-key
49-
- some-random-string
82+
- some-random-string
5083
- --facts-service-url
51-
- amqp://wanda:wanda@localhost:5674
84+
- amqp://trento:trento@localhost:5673
5285
- --server-url
5386
- http://localhost:4000

0 commit comments

Comments
 (0)