File tree 1 file changed +38
-5
lines changed
1 file changed +38
-5
lines changed Original file line number Diff line number Diff line change @@ -27,27 +27,60 @@ services:
27
27
environment :
28
28
RABBITMQ_DEFAULT_USER : trento
29
29
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
30
48
node01 :
31
49
profiles : ['agents']
32
50
image : ghcr.io/trento-project/barbecue-hana_node01:latest
33
51
hostname : hana_node01
34
- network_mode : host
52
+ depends_on :
53
+ - rabbitmq
54
+ # network_mode: host
35
55
command :
36
56
- --api-key
37
57
- some-random-string
38
58
- --facts-service-url
39
- - amqp://wanda:wanda @localhost:5674
59
+ - amqp://trento:trento @localhost:5673
40
60
- --server-url
41
61
- http://localhost:4000
42
62
node02 :
43
63
profiles : ['agents']
44
64
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
46
75
network_mode : host
76
+ # extra_hosts:
77
+ # - localhost:host-gateway
78
+ # --add-host=localhost:host-gateway
79
+ # --hostname=hana_node02
47
80
command :
48
81
- --api-key
49
- - some-random-string
82
+ - some-random-string
50
83
- --facts-service-url
51
- - amqp://wanda:wanda @localhost:5674
84
+ - amqp://trento:trento @localhost:5673
52
85
- --server-url
53
86
- http://localhost:4000
You can’t perform that action at this time.
0 commit comments