zulip: Update to Zulip 12.3 (ghcr.io/zulip/zulip-server).

The 12.x image replaces DB_HOST/SSL_CERTIFICATE_GENERATION and the
*_HOST service variables with SETTING_*/CONFIG_*/CERTIFICATES.  RabbitMQ
goes from 3.7.7 to 4.2.9 on a fresh data directory (the old one is kept
in old-3.7.7/ on the volume; all queues were empty), with the default
user set in the config file as upstream does.  Recreate strategy, since
the volumes are RWO.

The 12.x entrypoint only chmods the persisted /data/zulip-secrets.conf,
which was root:root from the 11.x image; it was changed to root:zulip
(gid 1000) by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: I120c5f5519ae15be9226eabbbd2d7ef92ba30818
diff --git a/zulip/zulip.yaml b/zulip/zulip.yaml
index d80f282..4df7324 100644
--- a/zulip/zulip.yaml
+++ b/zulip/zulip.yaml
@@ -58,6 +58,9 @@
     name: zulip
 spec:
   replicas: 1
+  # Single replica on RWO volumes: never run two Zulips at once.
+  strategy:
+    type: Recreate
   selector:
     matchLabels:
       name: zulip
@@ -68,7 +71,7 @@
     spec:
       containers:
         - name: redis
-          image: docker.io/library/redis:alpine
+          image: docker.io/library/redis:8.2.1-alpine
           command:
             - 'sh'
             - '-euc'
@@ -90,7 +93,7 @@
             - name: redis-persistent-storage
               mountPath: /var/lib/redis
         - name: memcached
-          image: docker.io/library/memcached:alpine
+          image: docker.io/library/memcached:1.6.39-alpine
           resources:
             requests:
               cpu: 10m
@@ -98,7 +101,17 @@
               cpu: 750m
               memory: 768Mi
         - name: rabbitmq
-          image: docker.io/library/rabbitmq:3.7.7
+          # 3.7.7 → 4.2 cannot be upgraded in place; started on a fresh data
+          # directory on 2026-11-05 (all queues were empty).
+          image: docker.io/library/rabbitmq:4.2.9
+          # As in upstream docker-zulip: the default user goes into the config
+          # file rather than relying on the deprecated RABBITMQ_DEFAULT_* env.
+          command:
+            - 'sh'
+            - '-euc'
+            - |
+              printf 'default_user = %s\ndefault_pass = %s\n' "$RABBITMQ_DEFAULT_USER" "$RABBITMQ_DEFAULT_PASS" > /etc/rabbitmq/conf.d/90-zulip.conf
+              exec docker-entrypoint.sh rabbitmq-server
           resources:
             requests:
               cpu: 10m
@@ -117,7 +130,10 @@
             - name: rabbitmq-persistent-storage
               mountPath: /var/lib/rabbitmq
         - name: zulip
-          image: docker.io/zulip/docker-zulip:11.6-0
+          # 12.x moved from zulip/docker-zulip to this image and renamed the
+          # service settings; the entrypoint refuses DB_HOST and
+          # SSL_CERTIFICATE_GENERATION.
+          image: ghcr.io/zulip/zulip-server:12.3-0
           resources:
             requests:
               cpu: 10m
@@ -125,14 +141,18 @@
               cpu: 1000m
               memory: 4Gi
           env:
-            - name: DB_HOST
+            - name: SETTING_REMOTE_POSTGRES_HOST
               value: 'postgresql.system'
-            - name: MEMCACHED_HOST
-              value: 'localhost'
-            - name: REDIS_HOST
-              value: 'localhost'
-            - name: RABBITMQ_HOST
-              value: 'localhost'
+            - name: CONFIG_postgresql__database_user
+              value: 'zulip'
+            - name: CONFIG_postgresql__database_name
+              value: 'zulip'
+            - name: SETTING_MEMCACHED_LOCATION
+              value: '127.0.0.1:11211'
+            - name: SETTING_REDIS_HOST
+              value: '127.0.0.1'
+            - name: SETTING_RABBITMQ_HOST
+              value: '127.0.0.1'
             - name: SETTING_EXTERNAL_HOST
               value: 'zulip.benkard.de'
             - name: SETTING_ZULIP_ADMINISTRATOR
@@ -183,7 +203,8 @@
                 secretKeyRef:
                   name: zulip-secrets
                   key: redis-password
-            - name: SSL_CERTIFICATE_GENERATION
+            # The Ingress talks HTTPS to the backend.
+            - name: CERTIFICATES
               value: 'self-signed'
             # Uncomment this when configuring the mobile push notifications service
             # - name: PUSH_NOTIFICATION_BOUNCER_URL