volumes:db:data_es:services:db:image:postgres:14.3shm_size:512mcommand:# full form-"postgres"-"-c"-"max_connections=1000"-"-c"-"shared_buffers=256MB"volumes:-db:/var/lib/postgresql/data-./postgres/init:/docker-entrypoint-initdb.denvironment:-POSTGRES_DB=postgres-POSTGRES_USER=postgres-POSTGRES_PASS=postgres-PGUSER=postgres-POSTGRES_HOST_AUTH_METHOD=trustports:-"5432:5432"healthcheck:test:["CMD-SHELL","su-postgres-c'pg_isready-hdb-Upostgres'"]interval:3stimeout:10sretries:5redis:image:redis:4.0.11-alpine3.8ports:-"6379:6379"healthcheck:test:["CMD","redis-cli","ping"]interval:10stimeout:10sretries:5# Step 2 of the ES 8 → 9 migration: official Elastic image reading the same# data volume that Bitnami ES 8.18 wrote. Two compatibility issues are# handled here, mirroring the prod k8s manifest:# 1. UID: Bitnami runs as 1001, official ES 9 runs as 1000. The init# container chowns the volume once before ES starts.# 2. Data path: Bitnami stores at /bitnami/elasticsearch/data; we keep# that path via the path.data env so ES 9 reads existing indexes# without a move/copy.# The analysis-phonetic plugin (auto-installed by Bitnami via env) is# installed by the official image via the command wrapper at boot.elasticsearch-init:image:busybox:1.36user:"0:0"command:["sh","-c","chown-R1000:0/data&&chmod-Rg+rwX/data&&echo'data_eschownedto1000:0forofficialES9'"]volumes:-data_es:/dataelasticsearch:image:docker.elastic.co/elasticsearch/elasticsearch:9.0.1depends_on:elasticsearch-init:condition:service_completed_successfullycommand:>bash -c "bin/elasticsearch-plugin install analysis-phonetic --batch --silent 2>/dev/null || true &&exec /usr/local/bin/docker-entrypoint.sh eswrapper"environment:-"ES_JAVA_OPTS=-Xms2g-Xmx2g"-"xpack.security.enabled=false"-"xpack.security.http.ssl.enabled=false"-"discovery.type=single-node"-"path.data=/bitnami/elasticsearch/data"ulimits:memlock:soft:-1hard:-1volumes:-data_es:/bitnami/elasticsearch/dataports:-"9200:9200"healthcheck:test:["CMD-SHELL","curl-fhttp://localhost:9200/_cluster/health||exit1"]interval:10stimeout:10sretries:3