Wurfkreuz

sentry

Oct 14th, 2025
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.65 KB | Software | 0 0
  1. x-restart-policy: &restart_policy
  2. restart: unless-stopped
  3. x-depends_on-healthy: &depends_on-healthy
  4. condition: service_healthy
  5. x-depends_on-default: &depends_on-default
  6. condition: service_started
  7. x-healthcheck-defaults: &healthcheck_defaults
  8. # Avoid setting the interval too small, as docker uses much more CPU than one would expect.
  9. # Related issues:
  10. # https://github.com/moby/moby/issues/39102
  11. # https://github.com/moby/moby/issues/39388
  12. # https://github.com/getsentry/self-hosted/issues/1000
  13. interval: "$HEALTHCHECK_INTERVAL"
  14. timeout: "$HEALTHCHECK_TIMEOUT"
  15. retries: $HEALTHCHECK_RETRIES
  16. start_period: 10s
  17. x-sentry-defaults: &sentry_defaults
  18. <<: *restart_policy
  19. image: sentry-self-hosted-local
  20. # Set the platform to build for linux/arm64 when needed on Apple silicon Macs.
  21. platform: ${DOCKER_PLATFORM:-}
  22. build:
  23. context: ./sentry
  24. args:
  25. - SENTRY_IMAGE
  26. depends_on:
  27. redis:
  28. <<: *depends_on-healthy
  29. kafka:
  30. <<: *depends_on-healthy
  31. postgres:
  32. <<: *depends_on-healthy
  33. memcached:
  34. <<: *depends_on-default
  35. snuba-api:
  36. <<: *depends_on-default
  37. symbolicator:
  38. <<: *depends_on-default
  39. entrypoint: "/etc/sentry/entrypoint.sh"
  40. command: ["run", "web"]
  41. environment:
  42. PYTHONUSERBASE: "/data/custom-packages"
  43. SENTRY_CONF: "/etc/sentry"
  44. SNUBA: "http://snuba-api:1218"
  45. VROOM: "http://vroom:8085"
  46. # Force everything to use the system CA bundle
  47. # This is mostly needed to support installing custom CA certs
  48. # This one is used by botocore
  49. DEFAULT_CA_BUNDLE: &ca_bundle "/etc/ssl/certs/ca-certificates.crt"
  50. # This one is used by requests
  51. REQUESTS_CA_BUNDLE: *ca_bundle
  52. # This one is used by grpc/google modules
  53. GRPC_DEFAULT_SSL_ROOTS_FILE_PATH_ENV_VAR: *ca_bundle
  54. # Leaving the value empty to just pass whatever is set
  55. # on the host system (or in the .env file)
  56. COMPOSE_PROFILES:
  57. SENTRY_EVENT_RETENTION_DAYS:
  58. SENTRY_MAIL_HOST:
  59. SENTRY_MAX_EXTERNAL_SOURCEMAP_SIZE:
  60. volumes:
  61. - "$SENTRY_DATA_DIR:/data"
  62. - "./sentry:/etc/sentry"
  63. - "./geoip:/geoip:ro"
  64. - "./certificates:/usr/local/share/ca-certificates:ro"
  65. x-snuba-defaults: &snuba_defaults
  66. <<: *restart_policy
  67. depends_on:
  68. clickhouse:
  69. <<: *depends_on-healthy
  70. kafka:
  71. <<: *depends_on-healthy
  72. redis:
  73. <<: *depends_on-healthy
  74. image: "$SNUBA_IMAGE"
  75. environment:
  76. SNUBA_SETTINGS: self_hosted
  77. CLICKHOUSE_HOST: clickhouse
  78. DEFAULT_BROKERS: "kafka:9092"
  79. REDIS_HOST: redis
  80. UWSGI_MAX_REQUESTS: "10000"
  81. UWSGI_DISABLE_LOGGING: "true"
  82. # Leaving the value empty to just pass whatever is set
  83. # on the host system (or in the .env file)
  84. SENTRY_EVENT_RETENTION_DAYS:
  85. services:
  86. memcached:
  87. <<: *restart_policy
  88. image: "memcached:1.6.26-alpine"
  89. command: ["-I", "${SENTRY_MAX_EXTERNAL_SOURCEMAP_SIZE:-1M}"]
  90. healthcheck:
  91. <<: *healthcheck_defaults
  92. # From: https://stackoverflow.com/a/31877626/5155484
  93. test: echo stats | nc 127.0.0.1 11211
  94. redis:
  95. <<: *restart_policy
  96. image: "redis:6.2.14-alpine"
  97. healthcheck:
  98. <<: *healthcheck_defaults
  99. test: redis-cli ping | grep PONG
  100. volumes:
  101. - "$SENTRY_REDIS_DIR:/data"
  102. - type: bind
  103. read_only: true
  104. source: ./redis.conf
  105. target: /usr/local/etc/redis/redis.conf
  106. ulimits:
  107. nofile:
  108. soft: 10032
  109. hard: 10032
  110. command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
  111. postgres:
  112. <<: *restart_policy
  113. # Using the same postgres version as Sentry dev for consistency purposes
  114. image: "postgres:14.11"
  115. env_file:
  116. - ./postgres.env
  117. healthcheck:
  118. <<: *healthcheck_defaults
  119. # Using default user "postgres" from sentry/sentry.conf.example.py or value of POSTGRES_USER if provided
  120. test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres}"]
  121. command:
  122. [
  123. "postgres",
  124. "-c",
  125. "wal_level=logical",
  126. "-c",
  127. "max_replication_slots=10",
  128. "-c",
  129. "max_wal_senders=4",
  130. "-c",
  131. "max_connections=${POSTGRES_MAX_CONNECTIONS:-100}",
  132. ]
  133. ports:
  134. - "5432:5432"
  135. # - "172.31.0.97:5432:5432"
  136. volumes:
  137. - "$SENTRY_POSTGRES_DIR:/var/lib/postgresql/data"
  138. kafka:
  139. <<: *restart_policy
  140. image: "confluentinc/cp-kafka:7.6.1"
  141. environment:
  142. # https://docs.confluent.io/platform/current/installation/docker/config-reference.html#cp-kakfa-example
  143. KAFKA_PROCESS_ROLES: "broker,controller"
  144. KAFKA_CONTROLLER_QUORUM_VOTERS: "[email protected]:29093"
  145. KAFKA_CONTROLLER_LISTENER_NAMES: "CONTROLLER"
  146. KAFKA_NODE_ID: "1001"
  147. CLUSTER_ID: "MkU3OEVBNTcwNTJENDM2Qk"
  148. KAFKA_LISTENERS: "PLAINTEXT://0.0.0.0:29092,INTERNAL://0.0.0.0:9093,EXTERNAL://0.0.0.0:9092,CONTROLLER://0.0.0.0:29093"
  149. KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://127.0.0.1:29092,INTERNAL://kafka:9093,EXTERNAL://kafka:9092"
  150. KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "PLAINTEXT:PLAINTEXT,INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT,CONTROLLER:PLAINTEXT"
  151. KAFKA_INTER_BROKER_LISTENER_NAME: "PLAINTEXT"
  152. KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: "1"
  153. KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: "1"
  154. KAFKA_LOG_RETENTION_HOURS: "24"
  155. KAFKA_MESSAGE_MAX_BYTES: "50000000" #50MB or bust
  156. KAFKA_MAX_REQUEST_SIZE: "50000000" #50MB on requests apparently too
  157. CONFLUENT_SUPPORT_METRICS_ENABLE: "false"
  158. KAFKA_LOG4J_LOGGERS: "kafka.cluster=WARN,kafka.controller=WARN,kafka.coordinator=WARN,kafka.log=WARN,kafka.server=WARN,state.change.logger=WARN"
  159. KAFKA_LOG4J_ROOT_LOGLEVEL: "WARN"
  160. KAFKA_TOOLS_LOG4J_LOGLEVEL: "WARN"
  161. ulimits:
  162. nofile:
  163. soft: 4096
  164. hard: 4096
  165. volumes:
  166. - "$SENTRY_KAFKA_DIR:/var/lib/kafka/data"
  167. - "sentry-kafka-log:/var/lib/kafka/log"
  168. - "sentry-secrets:/etc/kafka/secrets"
  169. healthcheck:
  170. <<: *healthcheck_defaults
  171. test: ["CMD-SHELL", "nc -z localhost 9092"]
  172. interval: 10s
  173. timeout: 10s
  174. retries: 30
  175. clickhouse:
  176. <<: *restart_policy
  177. image: clickhouse-self-hosted-local
  178. build:
  179. context: ./clickhouse
  180. args:
  181. BASE_IMAGE: "altinity/clickhouse-server:23.8.11.29.altinitystable"
  182. ulimits:
  183. nofile:
  184. soft: 262144
  185. hard: 262144
  186. volumes:
  187. - "$SENTRY_CLICKHOUSE_DIR:/var/lib/clickhouse"
  188. - "sentry-clickhouse-log:/var/log/clickhouse-server"
  189. - type: bind
  190. read_only: true
  191. source: ./clickhouse/config.xml
  192. target: /etc/clickhouse-server/config.d/sentry.xml
  193. environment:
  194. # This limits Clickhouse's memory to 30% of the host memory
  195. # If you have high volume and your search return incomplete results
  196. # You might want to change this to a higher value (and ensure your host has enough memory)
  197. MAX_MEMORY_USAGE_RATIO: 0.3
  198. healthcheck:
  199. test: [
  200. "CMD-SHELL",
  201. # Manually override any http_proxy envvar that might be set, because
  202. # this wget does not support no_proxy. See:
  203. # https://github.com/getsentry/self-hosted/issues/1537
  204. "http_proxy='' wget -nv -t1 --spider 'http://localhost:8123/' || exit 1",
  205. ]
  206. interval: 10s
  207. timeout: 10s
  208. retries: 30
  209. snuba-api:
  210. <<: *snuba_defaults
  211. # Kafka consumer responsible for feeding events into Clickhouse
  212. snuba-errors-consumer:
  213. <<: *snuba_defaults
  214. command: rust-consumer --storage errors --consumer-group snuba-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  215. # Kafka consumer responsible for feeding outcomes into Clickhouse
  216. # Use --auto-offset-reset=earliest to recover up to 7 days of TSDB data
  217. # since we did not do a proper migration
  218. snuba-outcomes-consumer:
  219. <<: *snuba_defaults
  220. command: rust-consumer --storage outcomes_raw --consumer-group snuba-consumers --auto-offset-reset=earliest --max-batch-time-ms 750 --no-strict-offset-reset
  221. snuba-outcomes-billing-consumer:
  222. <<: *snuba_defaults
  223. command: rust-consumer --storage outcomes_raw --consumer-group snuba-consumers --auto-offset-reset=earliest --max-batch-time-ms 750 --no-strict-offset-reset --raw-events-topic outcomes-billing
  224. snuba-group-attributes-consumer:
  225. <<: *snuba_defaults
  226. command: rust-consumer --storage group_attributes --consumer-group snuba-group-attributes-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  227. snuba-replacer:
  228. <<: *snuba_defaults
  229. command: replacer --storage errors --auto-offset-reset=latest --no-strict-offset-reset
  230. snuba-subscription-consumer-events:
  231. <<: *snuba_defaults
  232. command: subscriptions-scheduler-executor --dataset events --entity events --auto-offset-reset=latest --no-strict-offset-reset --consumer-group=snuba-events-subscriptions-consumers --followed-consumer-group=snuba-consumers --schedule-ttl=60 --stale-threshold-seconds=900
  233. #############################################
  234. ## Feature Complete Sentry Snuba Consumers ##
  235. #############################################
  236. # Kafka consumer responsible for feeding transactions data into Clickhouse
  237. snuba-transactions-consumer:
  238. <<: *snuba_defaults
  239. command: rust-consumer --storage transactions --consumer-group transactions_group --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  240. profiles:
  241. - feature-complete
  242. snuba-replays-consumer:
  243. <<: *snuba_defaults
  244. command: rust-consumer --storage replays --consumer-group snuba-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  245. profiles:
  246. - feature-complete
  247. snuba-issue-occurrence-consumer:
  248. <<: *snuba_defaults
  249. command: rust-consumer --storage search_issues --consumer-group generic_events_group --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  250. profiles:
  251. - feature-complete
  252. snuba-metrics-consumer:
  253. <<: *snuba_defaults
  254. command: rust-consumer --storage metrics_raw --consumer-group snuba-metrics-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  255. profiles:
  256. - feature-complete
  257. snuba-subscription-consumer-transactions:
  258. <<: *snuba_defaults
  259. command: subscriptions-scheduler-executor --dataset transactions --entity transactions --auto-offset-reset=latest --no-strict-offset-reset --consumer-group=snuba-transactions-subscriptions-consumers --followed-consumer-group=transactions_group --schedule-ttl=60 --stale-threshold-seconds=900
  260. profiles:
  261. - feature-complete
  262. snuba-subscription-consumer-metrics:
  263. <<: *snuba_defaults
  264. command: subscriptions-scheduler-executor --dataset metrics --entity metrics_sets --entity metrics_counters --auto-offset-reset=latest --no-strict-offset-reset --consumer-group=snuba-metrics-subscriptions-consumers --followed-consumer-group=snuba-metrics-consumers --schedule-ttl=60 --stale-threshold-seconds=900
  265. profiles:
  266. - feature-complete
  267. snuba-generic-metrics-distributions-consumer:
  268. <<: *snuba_defaults
  269. command: rust-consumer --storage generic_metrics_distributions_raw --consumer-group snuba-gen-metrics-distributions-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  270. profiles:
  271. - feature-complete
  272. snuba-generic-metrics-sets-consumer:
  273. <<: *snuba_defaults
  274. command: rust-consumer --storage generic_metrics_sets_raw --consumer-group snuba-gen-metrics-sets-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  275. profiles:
  276. - feature-complete
  277. snuba-generic-metrics-counters-consumer:
  278. <<: *snuba_defaults
  279. command: rust-consumer --storage generic_metrics_counters_raw --consumer-group snuba-gen-metrics-counters-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  280. profiles:
  281. - feature-complete
  282. snuba-generic-metrics-gauges-consumer:
  283. <<: *snuba_defaults
  284. command: rust-consumer --storage generic_metrics_gauges_raw --consumer-group snuba-gen-metrics-gauges-consumers --auto-offset-reset=latest --max-batch-time-ms 750 --no-strict-offset-reset
  285. profiles:
  286. - feature-complete
  287. snuba-profiling-profiles-consumer:
  288. <<: *snuba_defaults
  289. command: rust-consumer --storage profiles --consumer-group snuba-consumers --auto-offset-reset=latest --max-batch-time-ms 1000 --no-strict-offset-reset
  290. profiles:
  291. - feature-complete
  292. snuba-profiling-functions-consumer:
  293. <<: *snuba_defaults
  294. command: rust-consumer --storage functions_raw --consumer-group snuba-consumers --auto-offset-reset=latest --max-batch-time-ms 1000 --no-strict-offset-reset
  295. profiles:
  296. - feature-complete
  297. snuba-spans-consumer:
  298. <<: *snuba_defaults
  299. command: rust-consumer --storage spans --consumer-group snuba-spans-consumers --auto-offset-reset=latest --max-batch-time-ms 1000 --no-strict-offset-reset
  300. profiles:
  301. - feature-complete
  302. symbolicator:
  303. <<: *restart_policy
  304. image: "$SYMBOLICATOR_IMAGE"
  305. volumes:
  306. - "$SENTRY_SYMBOLICATOR_DIR:/data"
  307. - type: bind
  308. read_only: true
  309. source: ./symbolicator
  310. target: /etc/symbolicator
  311. command: run -c /etc/symbolicator/config.yml
  312. symbolicator-cleanup:
  313. <<: *restart_policy
  314. image: symbolicator-cleanup-self-hosted-local
  315. build:
  316. context: ./cron
  317. args:
  318. BASE_IMAGE: "$SYMBOLICATOR_IMAGE"
  319. command: '"55 23 * * * gosu symbolicator symbolicator cleanup"'
  320. volumes:
  321. - "$SENTRY_SYMBOLICATOR_DIR:/data"
  322. web:
  323. <<: *sentry_defaults
  324. ulimits:
  325. nofile:
  326. soft: 4096
  327. hard: 4096
  328. healthcheck:
  329. <<: *healthcheck_defaults
  330. test:
  331. - "CMD"
  332. - "/bin/bash"
  333. - "-c"
  334. # Courtesy of https://unix.stackexchange.com/a/234089/108960
  335. - 'exec 3<>/dev/tcp/127.0.0.1/9000 && echo -e "GET /_health/ HTTP/1.1\r\nhost: 127.0.0.1\r\n\r\n" >&3 && grep ok -s -m 1 <&3'
  336. cron:
  337. <<: *sentry_defaults
  338. command: run cron
  339. worker:
  340. <<: *sentry_defaults
  341. command: run worker
  342. events-consumer:
  343. <<: *sentry_defaults
  344. command: run consumer ingest-events --consumer-group ingest-consumer
  345. attachments-consumer:
  346. <<: *sentry_defaults
  347. command: run consumer ingest-attachments --consumer-group ingest-consumer
  348. post-process-forwarder-errors:
  349. <<: *sentry_defaults
  350. command: run consumer --no-strict-offset-reset post-process-forwarder-errors --consumer-group post-process-forwarder --synchronize-commit-log-topic=snuba-commit-log --synchronize-commit-group=snuba-consumers
  351. subscription-consumer-events:
  352. <<: *sentry_defaults
  353. command: run consumer events-subscription-results --consumer-group query-subscription-consumer
  354. ##############################################
  355. ## Feature Complete Sentry Ingest Consumers ##
  356. ##############################################
  357. transactions-consumer:
  358. <<: *sentry_defaults
  359. command: run consumer ingest-transactions --consumer-group ingest-consumer
  360. profiles:
  361. - feature-complete
  362. metrics-consumer:
  363. <<: *sentry_defaults
  364. command: run consumer ingest-metrics --consumer-group metrics-consumer
  365. profiles:
  366. - feature-complete
  367. generic-metrics-consumer:
  368. <<: *sentry_defaults
  369. command: run consumer ingest-generic-metrics --consumer-group generic-metrics-consumer
  370. profiles:
  371. - feature-complete
  372. billing-metrics-consumer:
  373. <<: *sentry_defaults
  374. command: run consumer billing-metrics-consumer --consumer-group billing-metrics-consumer
  375. profiles:
  376. - feature-complete
  377. ingest-replay-recordings:
  378. <<: *sentry_defaults
  379. command: run consumer ingest-replay-recordings --consumer-group ingest-replay-recordings
  380. profiles:
  381. - feature-complete
  382. ingest-occurrences:
  383. <<: *sentry_defaults
  384. command: run consumer ingest-occurrences --consumer-group ingest-occurrences
  385. profiles:
  386. - feature-complete
  387. ingest-profiles:
  388. <<: *sentry_defaults
  389. command: run consumer ingest-profiles --consumer-group ingest-profiles
  390. profiles:
  391. - feature-complete
  392. ingest-monitors:
  393. <<: *sentry_defaults
  394. command: run consumer ingest-monitors --consumer-group ingest-monitors
  395. profiles:
  396. - feature-complete
  397. ingest-feedback-events:
  398. <<: *sentry_defaults
  399. command: run consumer ingest-feedback-events --consumer-group ingest-feedback
  400. profiles:
  401. - feature-complete
  402. monitors-clock-tick:
  403. <<: *sentry_defaults
  404. command: run consumer monitors-clock-tick --consumer-group monitors-clock-tick
  405. profiles:
  406. - feature-complete
  407. monitors-clock-tasks:
  408. <<: *sentry_defaults
  409. command: run consumer monitors-clock-tasks --consumer-group monitors-clock-tasks
  410. profiles:
  411. - feature-complete
  412. post-process-forwarder-transactions:
  413. <<: *sentry_defaults
  414. command: run consumer --no-strict-offset-reset post-process-forwarder-transactions --consumer-group post-process-forwarder --synchronize-commit-log-topic=snuba-transactions-commit-log --synchronize-commit-group transactions_group
  415. profiles:
  416. - feature-complete
  417. post-process-forwarder-issue-platform:
  418. <<: *sentry_defaults
  419. command: run consumer --no-strict-offset-reset post-process-forwarder-issue-platform --consumer-group post-process-forwarder --synchronize-commit-log-topic=snuba-generic-events-commit-log --synchronize-commit-group generic_events_group
  420. profiles:
  421. - feature-complete
  422. subscription-consumer-transactions:
  423. <<: *sentry_defaults
  424. command: run consumer transactions-subscription-results --consumer-group query-subscription-consumer
  425. profiles:
  426. - feature-complete
  427. subscription-consumer-metrics:
  428. <<: *sentry_defaults
  429. command: run consumer metrics-subscription-results --consumer-group query-subscription-consumer
  430. profiles:
  431. - feature-complete
  432. subscription-consumer-generic-metrics:
  433. <<: *sentry_defaults
  434. command: run consumer generic-metrics-subscription-results --consumer-group query-subscription-consumer
  435. profiles:
  436. - feature-complete
  437. sentry-cleanup:
  438. <<: *sentry_defaults
  439. image: sentry-cleanup-self-hosted-local
  440. build:
  441. context: ./cron
  442. args:
  443. BASE_IMAGE: sentry-self-hosted-local
  444. entrypoint: "/entrypoint.sh"
  445. command: '"0 0 * * * gosu sentry sentry cleanup --days $SENTRY_EVENT_RETENTION_DAYS"'
  446. nginx:
  447. <<: *restart_policy
  448. ports:
  449. - "$SENTRY_BIND:80/tcp"
  450. image: "nginx:1.25.4-alpine"
  451. volumes:
  452. - type: bind
  453. read_only: true
  454. source: ./nginx.conf
  455. target: /etc/nginx/nginx.conf
  456. - sentry-nginx-cache:/var/cache/nginx
  457. - sentry-nginx-www:/var/www
  458. depends_on:
  459. - web
  460. - relay
  461. relay:
  462. <<: *restart_policy
  463. image: "$RELAY_IMAGE"
  464. volumes:
  465. - type: bind
  466. read_only: true
  467. source: ./relay
  468. target: /work/.relay
  469. - type: bind
  470. read_only: true
  471. source: ./geoip
  472. target: /geoip
  473. depends_on:
  474. kafka:
  475. <<: *depends_on-healthy
  476. redis:
  477. <<: *depends_on-healthy
  478. web:
  479. <<: *depends_on-healthy
  480. vroom:
  481. <<: *restart_policy
  482. image: "$VROOM_IMAGE"
  483. environment:
  484. SENTRY_KAFKA_BROKERS_PROFILING: "kafka:9092"
  485. SENTRY_KAFKA_BROKERS_OCCURRENCES: "kafka:9092"
  486. SENTRY_BUCKET_PROFILES: file://localhost//var/lib/sentry-profiles
  487. SENTRY_SNUBA_HOST: "http://snuba-api:1218"
  488. volumes:
  489. - sentry-vroom:/var/lib/sentry-profiles
  490. depends_on:
  491. kafka:
  492. <<: *depends_on-healthy
  493. profiles:
  494. - feature-complete
  495. vroom-cleanup:
  496. <<: *restart_policy
  497. image: vroom-cleanup-self-hosted-local
  498. build:
  499. context: ./cron
  500. args:
  501. BASE_IMAGE: "$VROOM_IMAGE"
  502. entrypoint: "/entrypoint.sh"
  503. environment:
  504. # Leaving the value empty to just pass whatever is set
  505. # on the host system (or in the .env file)
  506. SENTRY_EVENT_RETENTION_DAYS:
  507. command: '"0 0 * * * find /var/lib/sentry-profiles -type f -mtime +$SENTRY_EVENT_RETENTION_DAYS -delete"'
  508. volumes:
  509. - sentry-vroom:/var/lib/sentry-profiles
  510. profiles:
  511. - feature-complete
  512.  
  513. volumes:
  514. # This volume stores profiles and should be persisted.
  515. # Not being external will still persist data across restarts.
  516. # It won't persist if someone does a docker compose down -v.
  517. sentry-vroom:
  518. # These store ephemeral data that needn't persist across restarts.
  519. # That said, volumes will be persisted across restarts until they are deleted.
  520. sentry-secrets:
  521. sentry-nginx-cache:
  522. sentry-kafka-log:
  523. sentry-clickhouse-log:
  524.  
Advertisement
Add Comment
Please, Sign In to add comment