-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.debug.yml
192 lines (182 loc) · 6.37 KB
/
docker-compose.debug.yml
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
version: '2.4'
services:
elastic:
extends:
file: docker-compose.yml
service: elastic
kibana:
extends:
file: docker-compose.yml
service: kibana
rp:
extends:
file: docker-compose.yml
service: rp
redis:
image: redis:6.2.6-alpine3.15
command: --requirepass "${EZMESURE_REDIS_PASSWORD:-changeme}"
ports:
- 6379:6379
restart: unless-stopped
postgres:
image: postgres:15.1-alpine3.16
restart: unless-stopped
environment:
- POSTGRES_USER=${EZMESURE_POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${EZMESURE_POSTGRES_PASSWORD:-changeme}
volumes:
- ./data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
interval: ${POSTGRES_HEALTHCHECK_INTERVAL:-10s}
timeout: ${POSTGRES_HEALTHCHECK_TIMEOUT:-5s}
retries: ${POSTGRES_HEALTHCHECK_RETRIES:-5}
api:
image: node:18.18.2-alpine3.18
ports:
- 3000:3000
- 9229:9229 # Debug port
volumes:
- "./api:/usr/src/app"
- "${EZMESURE_API_STORAGE_DIR:-./data/api/storage}:/usr/src/app/storage"
- "${EZMESURE_API_UPLOADS_DIR:-./data/api/uploads}:/usr/src/app/uploads"
working_dir: /usr/src/app
environment:
- http_proxy
- https_proxy
- no_proxy=localhost,kibana
- EZMESURE_ELASTIC_HOST=${EZMESURE_ELASTIC_HOST:-elastic}
- EZMESURE_ELASTIC_PORT=${EZMESURE_ELASTIC_PORT:-9200}
- EZMESURE_KIBANA_HOST=${EZMESURE_KIBANA_HOST:-kibana}
- EZMESURE_KIBANA_PORT=${EZMESURE_KIBANA_PORT:-5601}
- EZMESURE_REDIS_HOST=${EZMESURE_REDIS_HOST:-redis}
- EZMESURE_REDIS_PASSWORD=${EZMESURE_REDIS_PASSWORD:-changeme}
- EZMESURE_POSTGRES_URL=postgresql://${EZMESURE_POSTGRES_USER:-postgres}:${EZMESURE_POSTGRES_PASSWORD:-changeme}@${EZMESURE_POSTGRES_HOST:-postgres}:${EZMESURE_POSTGRES_PORT:-5432}/${EZMESURE_POSTGRES_DB:-ezmesure}
- EZMESURE_HARVEST_CONCURRENCY
- EZMESURE_MAX_DEFERRALS
- EZMESURE_DEFERRAL_BACKOFF_DURATION
- EZMESURE_BUSY_BACKOFF_DURATION
- ELASTICSEARCH_PASSWORD
- KIBANA_PASSWORD
- EZMESURE_ADMIN_USERNAME
- EZMESURE_ADMIN_PASSWORD
- EZMESURE_ADMIN_EMAIL
- EZMESURE_AUTH_SECRET
- EZMESURE_SMTP_HOST=maildev
- EZMESURE_SMTP_PORT=25
- EZMESURE_SMTP_SECURE=false
- EZMESURE_SMTP_IGNORE_TLS=true
- EZMESURE_SMTP_REJECT_UNAUTHORIZED
- EZMESURE_NOTIFICATIONS_SENDER
- EZMESURE_NOTIFICATIONS_CRON
- EZMESURE_NOTIFICATIONS_RECIPIENTS
- EZMESURE_NOTIFICATIONS_SUPPORT_RECIPIENTS
- EZMESURE_SEND_EMPTY_ACTIVITY
- EZMESURE_ENCRYPTION_SECRET
- EZMESURE_LOG_LEVEL
- NODE_ENV
- NODE_CONFIG
restart: "no"
command: npm run dev
front:
image: node:18.18.2-alpine3.18
ports:
- 8080:8080
volumes:
- "./front:/usr/src/app"
working_dir: /usr/src/app
environment:
- API_URL=https://${EZMESURE_DOMAIN}/api
- EZMESURE_INSTANCE="local"
- EZMESURE_DISABLE_SHIBBOLETH
- HOST=0.0.0.0
- PORT=8080
command: npm run dev
restart: "no"
legacy-reporting:
extends:
file: docker-compose.yml
service: legacy-reporting
environment:
- REPORTING_SMTP_HOST=maildev
- REPORTING_SMTP_PORT=25
- REPORTING_SMTP_SECURE=false
- REPORTING_SMTP_IGNORE_TLS=true
- REPORTING_SMTP_REJECT_UNAUTHORIZED
reporting:
image: ghcr.io/ezpaarse-project/ezreeport-report
ports:
- 8888:8080
environment:
- http_proxy
- https_proxy
- no_proxy=localhost,elastic
# node
- NODE_ENV
- NODE_CONFIG
# redis
- REDIS_HOST=${EZMESURE_REDIS_HOST:-redis}
- REDIS_PORT=${EZMESURE_REDIS_PORT:-6379}
- REDIS_PASSWORD=${EZMESURE_REDIS_PASSWORD:-changeme}
# elastic
- ELASTIC_URL=${EZMESURE_ELASTIC_SCHEME:-https}://${EZMESURE_ELASTIC_HOST:-elastic}:${EZMESURE_ELASTIC_PORT:-9200}
- ELASTIC_USERNAME=${ELASTICSEARCH_USERNAME}
- ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD}
- ELASTIC_REQUIRED_STATUS=${ELASTIC_REQUIRED_STATUS:-yellow}
- ELASTIC_MAX_TRIES
# database
- DATABASE_URL=postgresql://${EZMESURE_POSTGRES_USER:-postgres}:${EZMESURE_POSTGRES_PASSWORD:-changeme}@${EZMESURE_POSTGRES_HOST:-postgres}:${EZMESURE_POSTGRES_PORT:-5432}/${EZREEPORT_POSTGRES_DB}?schema=public
# workers
- WORKERS_CONCURRENCE=${EZREEPORT_WORKERS_CONCURRENCE}
- WORKERS_MAX_EXEC_TIME=${EZREEPORT_WORKERS_MAX_EXEC_TIME}
# report specfic
- REPORT_ADMIN_KEY=${EZREEPORT_REPORT_ADMIN_KEY}
- REPORT_CRON_TZ=${EZREEPORT_REPORT_CRON_TZ}
- REPORT_CRON_TIMER_GENERATE_REPORT=${EZREEPORT_REPORT_CRON_TIMER_GENERATE_REPORT}
- REPORT_CRON_TIMER_PURGE_OLD_REPORT=${EZREEPORT_REPORT_CRON_TIMER_PURGE_OLD_REPORT}
- REPORT_ITERATIONS_TO_LIVE=${EZREEPORT_REPORT_ITERATIONS_TO_LIVE}
- REPORT_DAYS_TO_LIVE=${EZREEPORT_REPORT_DAYS_TO_LIVE}
- EMAIL_DEV_TEAM=${EZREEPORT_EMAIL_DEV_TEAM}
# common
- API_ALLOWED_ORIGINS=${EZREEPORT_API_ALLOWED_ORIGINS} #TODO: maybe localhost ?
- LOG_LEVEL=${EZREEPORT_LOG_LEVEL}
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
restart: "no"
reporting-mail:
image: ghcr.io/ezpaarse-project/ezreeport-mail
environment:
# node
- NODE_ENV
- NODE_CONFIG
# redis
- REDIS_HOST=${EZMESURE_REDIS_HOST:-redis}
- REDIS_PORT=${EZMESURE_REDIS_PORT:-6379}
- REDIS_PASSWORD=${EZMESURE_REDIS_PASSWORD:-changeme}
# smtp
- SMTP_HOST=${EZMESURE_SMTP_HOST}
- SMTP_PORT=${EZMESURE_SMTP_PORT}
- SMTP_SECURE=${EZMESURE_SMTP_SECURE}
- SMTP_IGNORE_TLS=${EZMESURE_SMTP_IGNORE_TLS}
- SMTP_REJECT_UNAUTHORIZED=${EZMESURE_SMTP_REJECT_UNAUTHORIZED}
# workers
- WORKERS_CONCURRENCE=${EZREEPORT_WORKERS_CONCURRENCE}
- WORKERS_MAX_EXEC_TIME=${EZREEPORT_WORKERS_MAX_EXEC_TIME}
# mail specific
- EMAIL_SENDER=${EZREEPORT_EMAIL_SENDER}
- EMAIL_SUPPORT_TEAM=${EZREEPORT_EMAIL_SUPPORT_TEAM}
- EMAIL_ATTEMPTS=${EZREEPORT_EMAIL_ATTEMPTS}
- EMAIL_ATTEMPTS_INTERVAL=${EZREEPORT_EMAIL_ATTEMPTS_INTERVAL}
# common
- LOG_LEVEL=${EZREEPORT_LOG_LEVEL}
depends_on:
redis:
condition: service_started
restart: "no"
maildev:
image: djfarrelly/maildev
ports:
- 1080:80