-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
114 lines (103 loc) · 3.36 KB
/
docker-compose.yaml
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
version: "3.7"
services:
trento-web:
image: ghcr.io/trento-project/trento-web:${WEB_IMAGE_TAG:-demo}
pull_policy: always
environment:
DATABASE_URL: ecto://dbUser:dbPassword@postgres/trento_web
EVENTSTORE_URL: ecto://dbUser:dbPassword@postgres/trento_event_store
AMQP_URL: amqp://rabbitUser:rabbitPassword@rabbitmq
ENABLE_API_KEY: "false"
SECRET_KEY_BASE: s2ZdE+3+ke1USHEJ5O45KT364KiXPYaB9cJPdH3p60t8yT0nkLexLBNw8TFSzC7k
ACCESS_TOKEN_ENC_SECRET: dummyS3cr3t
REFRESH_TOKEN_ENC_SECRET: an0th3rDummyS3cr3t
# JWT_AUTHENTICATION_ENABLED: "false"
ENABLE_ALERTING: "true"
SMTP_SERVER: mailserver
SMTP_PORT: 1025
SMTP_USER: ""
SMTP_PASSWORD: ""
ALERT_SENDER: "[email protected]"
ALERT_RECIPIENT: "[email protected]"
GRAFANA_PUBLIC_URL: http://localhost:3000
GRAFANA_API_URL: http://grafana:3000/api
# PROMETHEUS_URL: http://localhost:9090
ADMIN_USER: admin
ADMIN_PASSWORD: adminpassword
CHECKS_SERVICE_BASE_URL: http://localhost:4001
depends_on:
- postgres
- rabbitmq
- grafana
- mailserver
ports:
- 4000:4000
# healthcheck:
# test: curl -f http://localhost:4000/api/readyz || exit 1
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 5m
# start_interval: 3m
entrypoint: ["/bin/sh", "-c", "/app/bin/trento eval \"Trento.Release.init()\" && /app/bin/trento start"]
wanda:
image: ghcr.io/trento-project/trento-wanda:${WANDA_IMAGE_TAG:-demo}
pull_policy: always
environment:
DATABASE_URL: ecto://dbUser:dbPassword@postgres/wanda
AMQP_URL: amqp://rabbitUser:rabbitPassword@rabbitmq
SECRET_KEY_BASE: s2ZdE+3+ke1USHEJ5O45KT364KiXPYaB9cJPdH3p60t8yT0nkLexLBNw8TFSzC7k
CORS_ENABLED: "true"
CORS_ORIGIN: http://localhost:4000
CATALOG_PATH: /app/catalog
DEMO_FAKE_FACTS: /app/facts-gathering/fake_facts.yaml
# JWT_AUTHENTICATION_ENABLED: "false"
ACCESS_TOKEN_ENC_SECRET: dummyS3cr3t
depends_on:
- postgres
- rabbitmq
ports:
- 4001:4000
# healthcheck:
# test: curl -f http://localhost:4001/api/readyz || exit 1
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 5m
# start_interval: 3m
entrypoint: ["/bin/sh", "-c", "/app/bin/wanda eval \"Wanda.Release.init()\" && /app/bin/wanda start"]
volumes:
- ./data/catalog/:/app/catalog:rw
- ./data/facts-gathering/:/app/facts-gathering:rw
postgres:
image: postgres:16-alpine
pull_policy: always
environment:
POSTGRES_USER: dbUser
POSTGRES_PASSWORD: dbPassword
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- pg_data:/var/lib/postgresql/data
- ./docker/postgres/scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
rabbitmq:
image: rabbitmq:3.10.5-management-alpine
pull_policy: always
environment:
RABBITMQ_DEFAULT_USER: rabbitUser
RABBITMQ_DEFAULT_PASS: rabbitPassword
grafana:
image: grafana/grafana:9.5.12
pull_policy: always
environment:
GF_SECURITY_ALLOW_EMBEDDING: "true"
GF_AUTH_ANONYMOUS_ENABLED: "true"
ports:
- 3000:3000
mailserver:
image: mailhog/mailhog:v1.0.1
pull_policy: always
ports:
- 1025:1025
- 8025:8025
volumes:
pg_data: