@@ -22,7 +22,6 @@ services:
2222 - /var/run/docker.sock:/var/run/docker.sock:ro
2323 - /proc/:/host/proc/:ro
2424 - /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
25- - ./services/datadog-agent/postgres/dd-agent-conf.yaml:/conf.d/postgres.d/conf.yaml
2625 frontend :
2726 build :
2827 context : ./services/frontend
@@ -114,7 +113,6 @@ services:
114113 - DD_RUNTIME_METRICS_ENABLED=true
115114 - DD_PROFILING_ENABLED=true
116115 volumes :
117- - ' postgres:/var/lib/postgresql/data'
118116 - ./services/backend/db/restore:/docker-entrypoint-initdb.d
119117 - ./services/backend/db/postgresql.conf:/postgresql.conf
120118 labels :
@@ -143,7 +141,10 @@ services:
143141 },
144142 "max_relations": 400,
145143 "collect_function_metrics": true,
146- "collection_interval": 1
144+ "collection_interval": 1,
145+ "collect_schemas": {
146+ "enabled": true
147+ }
147148 },
148149 {
149150 "dbm":true,
@@ -161,7 +162,10 @@ services:
161162 },
162163 "max_relations": 400,
163164 "collect_function_metrics": true,
164- "collection_interval": 1
165+ "collection_interval": 1,
166+ "collect_schemas": {
167+ "enabled": true
168+ }
165169 }]'
166170 com.datadoghq.ad.logs : ' [{"source": "postgresql", "service": "postgres", "auto_multi_line_detection":true }]'
167171 my.custom.label.team : ' database'
@@ -232,6 +236,8 @@ services:
232236 - REDIS_URL=redis://redis:6379/0
233237 - DB_HOST=postgres
234238 - DB_PORT=5432
239+ - POSTGRES_USER
240+ - POSTGRES_PASSWORD
235241 - DISABLE_SPRING=1
236242 - DD_AGENT_HOST=dd-agent
237243 - DD_ENV=${DD_ENV-dev}
@@ -250,7 +256,7 @@ services:
250256 ads :
251257 build :
252258 context : ./services/ads/python
253- command : flask run --port=${ADS_PORT} --host=0.0.0.0 # If using any other port besides the default 9292, overriding the CMD is required
259+ command : wait-for-it postgres:5432 -- flask run --port=${ADS_PORT} --host=0.0.0.0 # If using any other port besides the default 9292, overriding the CMD is required
254260 depends_on :
255261 - postgres
256262 - dd-agent
@@ -283,7 +289,7 @@ services:
283289 discounts :
284290 build :
285291 context : ./services/discounts
286- command : ./my-wrapper-script.sh ${DISCOUNTS_PORT}
292+ command : wait-for-it postgres:5432 -- ./my-wrapper-script.sh ${DISCOUNTS_PORT}
287293 depends_on :
288294 - postgres
289295 - dd-agent
@@ -305,7 +311,6 @@ services:
305311 - ./services/discounts:/app
306312 ports :
307313 - ' ${DISCOUNTS_PORT}:${DISCOUNTS_PORT}'
308- - ' 22:22'
309314 labels :
310315 com.datadoghq.ad.logs : ' [{"source": "python", "service": "store-discounts"}]'
311316 com.datadoghq.tags.env : ' ${DD_ENV-dev}'
@@ -363,8 +368,6 @@ services:
363368 - STOREDOG_URL=${STOREDOG_URL-http://localhost}
364369 - PUPPETEER_TIMEOUT
365370 - SKIP_SESSION_CLOSE
366- profiles :
367- - puppeteer
368371 depends_on :
369372 - frontend
370373 command : bash puppeteer.sh
@@ -374,4 +377,3 @@ services:
374377
375378volumes :
376379 redis :
377- postgres :
0 commit comments