Skip to content

Commit 143f585

Browse files
authored
ref: use dedicated healthcheck command for symbolicator & remove cron for symbolicator-cleanup (#3979)
1 parent 79b46fb commit 143f585

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

docker-compose.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ services:
479479
symbolicator:
480480
<<: *restart_policy
481481
image: "$SYMBOLICATOR_IMAGE"
482+
command: run -c /etc/symbolicator/config.yml
482483
volumes:
483484
- "sentry-symbolicator:/data"
484485
- type: bind
@@ -487,23 +488,17 @@ services:
487488
target: /etc/symbolicator
488489
healthcheck:
489490
<<: *healthcheck_defaults
490-
test:
491-
- "CMD"
492-
- "/bin/bash"
493-
- "-c"
494-
# Courtesy of https://unix.stackexchange.com/a/234089/108960
495-
- 'exec 3<>/dev/tcp/127.0.0.1/3021 && echo -e "GET /healthcheck HTTP/1.1\r\nhost: 127.0.0.1\r\nConnection: close\r\n\r\n" >&3 && grep OK -s -m 1 <&3'
496-
command: run -c /etc/symbolicator/config.yml
491+
test: ["CMD", "/bin/symbolicator", "healthcheck", "-c", "/etc/symbolicator/config.yml"]
497492
symbolicator-cleanup:
498-
<<: [*restart_policy, *pull_policy]
499-
image: symbolicator-cleanup-self-hosted-local
500-
build:
501-
context: ./cron
502-
args:
503-
BASE_IMAGE: "$SYMBOLICATOR_IMAGE"
504-
command: '"55 23 * * * gosu symbolicator symbolicator cleanup"'
493+
<<: *restart_policy
494+
image: "$SYMBOLICATOR_IMAGE"
495+
command: "cleanup -c /etc/symbolicator/config.yml --repeat 1h"
505496
volumes:
506497
- "sentry-symbolicator:/data"
498+
- type: bind
499+
read_only: true
500+
source: ./symbolicator
501+
target: /etc/symbolicator
507502
web:
508503
<<: *sentry_defaults
509504
ulimits:

0 commit comments

Comments
 (0)