Skip to content

Commit f541117

Browse files
authored
Update middlewares to latest stable versions (#1002)
This PR is a try to update most middlewares used by Sentry to latest stable versions. [As mentioned in the forum](https://forum.sentry.io/t/middleware-version-compatibility/14353/2) I didn't update Postgresql & Clickhouse due to known issues. I also : - changed versions to immutable tags (MAJOR.MINOR.PATCH semver versions when possible). - changed nginx to the Alpine variant
1 parent 1d49629 commit f541117

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ services:
5858
- "sentry-smtp-log:/var/log/exim4"
5959
memcached:
6060
<<: *restart_policy
61-
image: "memcached:1.5-alpine"
61+
image: "memcached:1.6.9-alpine"
6262
healthcheck:
6363
# From: https://stackoverflow.com/a/31877626/5155484
6464
test: echo stats | nc 127.0.0.1 11211
@@ -68,7 +68,7 @@ services:
6868
start_period: 3s
6969
redis:
7070
<<: *restart_policy
71-
image: "redis:5.0-alpine"
71+
image: "redis:6.2.4-alpine"
7272
healthcheck:
7373
test: redis-cli ping
7474
interval: 2s
@@ -103,7 +103,7 @@ services:
103103
target: /opt/sentry/
104104
zookeeper:
105105
<<: *restart_policy
106-
image: "confluentinc/cp-zookeeper:5.5.0"
106+
image: "confluentinc/cp-zookeeper:6.2.0"
107107
environment:
108108
ZOOKEEPER_CLIENT_PORT: "2181"
109109
CONFLUENT_SUPPORT_METRICS_ENABLE: "false"
@@ -123,7 +123,7 @@ services:
123123
<<: *restart_policy
124124
depends_on:
125125
- zookeeper
126-
image: "confluentinc/cp-kafka:5.5.0"
126+
image: "confluentinc/cp-kafka:6.2.0"
127127
environment:
128128
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
129129
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092"
@@ -165,7 +165,7 @@ services:
165165
# You might want to change this to a higher value (and ensure your host has enough memory)
166166
MAX_MEMORY_USAGE_RATIO: 0.3
167167
geoipupdate:
168-
image: "maxmindinc/geoipupdate:latest"
168+
image: "maxmindinc/geoipupdate:v4.7.1"
169169
# Override the entrypoint in order to avoid using envvars for config.
170170
# Futz with settings so we can keep mmdb and conf in same dir on host
171171
# (image looks for them in separate dirs by default).
@@ -272,7 +272,7 @@ services:
272272
<<: *restart_policy
273273
ports:
274274
- "$SENTRY_BIND:80/tcp"
275-
image: "nginx:1.16"
275+
image: "nginx:1.21.0-alpine"
276276
volumes:
277277
- type: bind
278278
read_only: true

install/wrap-up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if [[ "$MINIMIZE_DOWNTIME" ]]; then
33

44
# Start the whole setup, except nginx and relay.
55
$dc up -d --remove-orphans $($dc config --services | grep -v -E '^(nginx|relay)$')
6-
$dc exec -T nginx service nginx reload
6+
$dc exec -T nginx nginx -s reload
77

88
docker run --rm --network="${COMPOSE_PROJECT_NAME}_default" alpine ash \
99
-c 'while [[ "$(wget -T 1 -q -O- http://web:9000/_health/)" != "ok" ]]; do sleep 0.5; done'

0 commit comments

Comments
 (0)