/ compose.yaml
compose.yaml
1 services: 2 db: 3 image: groonga/pgroonga:latest-alpine-18 4 environment: 5 POSTGRES_USER: ${POSTGRES_USER} 6 POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} 7 POSTGRES_DB: lion 8 volumes: 9 - db:/var/lib/postgresql 10 ports: 11 - "5423:5432" 12 restart: unless-stopped 13 healthcheck: 14 test: ["CMD-SHELL", "pg_isready -d postgres"] 15 interval: 30s 16 timeout: 10s 17 retries: 5 18 valkey: 19 container_name: valkey 20 image: valkey/valkey:latest 21 ports: 22 - "6379:6379" 23 environment: 24 VALKEY_EXTRA_FLAGS: "--appendonly yes" 25 restart: unless-stopped 26 healthcheck: 27 test: ["CMD", "valkey-cli", "ping"] 28 interval: 30s 29 timeout: 10s 30 retries: 5 31 volumes: 32 - valkey:/data 33 volumes: 34 db: 35 valkey: