mirror of
https://github.com/block/buzz.git
synced 2026-10-27 12:40:30 +00:00
## Summary CI is failing in `main` before tests start because Docker Hub denies pulls for `minio/minio` and `minio/mc`. Retrying the failed jobs produced the same errors. Use MinIO’s Quay images in the development, harness, deployment Compose, and Helm configurations. Pin each image to its multi-platform digest and retain the release tags already used by deployment templates. Update the architecture reference to match. ### Related issue No duplicate issue or PR found. Addresses the image-pull failures in [main CI attempt 2](https://github.com/block/buzz/actions/runs/34645306855/attempts/2). ### Testing - Pulled both pinned images for Linux ARM64 and AMD64. - Started an isolated Compose stack derived from the updated MinIO service definitions, once per architecture (AMD64 under local emulation). - Verified the existing health check passed and the bucket initializer exited with code 0. - Uploaded an object with `mc cp`, read it with `mc cat`, compared its content, and deleted it with `mc rm` on both architectures. - Confirmed the initialized bucket was private and removed the temporary stack and volume. Generated with Codex Signed-off-by: Salman Mohammed <smohammed@squareup.com>
192 lines
4.5 KiB
YAML
192 lines
4.5 KiB
YAML
name: buzz
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:17-alpine
|
|
container_name: buzz-postgres
|
|
environment:
|
|
POSTGRES_USER: buzz
|
|
POSTGRES_PASSWORD: buzz_dev
|
|
POSTGRES_DB: buzz
|
|
PGDATA: /var/lib/postgresql/data
|
|
ports:
|
|
- "127.0.0.1:5432:5432"
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
networks:
|
|
- buzz-net
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U buzz"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 10s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512m
|
|
labels:
|
|
com.buzz.service: "postgres"
|
|
com.buzz.env: "dev"
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: buzz-redis
|
|
ports:
|
|
- "127.0.0.1:6379:6379"
|
|
networks:
|
|
- buzz-net
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
start_period: 5s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 128m
|
|
labels:
|
|
com.buzz.service: "redis"
|
|
com.buzz.env: "dev"
|
|
restart: unless-stopped
|
|
|
|
adminer:
|
|
image: adminer:latest
|
|
container_name: buzz-adminer
|
|
ports:
|
|
- "127.0.0.1:8082:8080"
|
|
networks:
|
|
- buzz-net
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
ADMINER_DEFAULT_SERVER: postgres
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 64m
|
|
labels:
|
|
com.buzz.service: "adminer"
|
|
com.buzz.env: "dev"
|
|
restart: unless-stopped
|
|
|
|
keycloak:
|
|
image: quay.io/keycloak/keycloak:26.0
|
|
container_name: buzz-keycloak
|
|
command: start-dev --http-port=8080
|
|
environment:
|
|
KC_DB: dev-mem
|
|
KEYCLOAK_ADMIN: admin
|
|
KEYCLOAK_ADMIN_PASSWORD: admin
|
|
ports:
|
|
- "127.0.0.1:8180:8080"
|
|
networks:
|
|
- buzz-net
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "exec 3<>/dev/tcp/localhost/8080 && echo -e 'GET /health/ready HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3 && cat <&3 | grep -q '200 OK'"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 15
|
|
start_period: 30s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512m
|
|
labels:
|
|
com.buzz.service: "keycloak"
|
|
com.buzz.env: "dev"
|
|
restart: unless-stopped
|
|
|
|
minio:
|
|
image: quay.io/minio/minio:RELEASE.2025-09-07T16-13-09Z@sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e
|
|
container_name: buzz-minio
|
|
command: server /data --console-address ":9001"
|
|
environment:
|
|
MINIO_ROOT_USER: buzz_dev
|
|
MINIO_ROOT_PASSWORD: buzz_dev_secret
|
|
ports:
|
|
- "127.0.0.1:9000:9000"
|
|
- "127.0.0.1:9001:9001"
|
|
volumes:
|
|
- minio-data:/data
|
|
networks:
|
|
- buzz-net
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 10s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256m
|
|
labels:
|
|
com.buzz.service: "minio"
|
|
com.buzz.env: "dev"
|
|
restart: unless-stopped
|
|
|
|
minio-init:
|
|
image: quay.io/minio/mc:RELEASE.2025-08-13T08-35-41Z@sha256:a7fe349ef4bd8521fb8497f55c6042871b2ae640607cf99d9bede5e9bdf11727
|
|
container_name: buzz-minio-init
|
|
depends_on:
|
|
minio:
|
|
condition: service_healthy
|
|
networks:
|
|
- buzz-net
|
|
entrypoint: >
|
|
/bin/sh -c "
|
|
mc alias set local http://minio:9000 buzz_dev buzz_dev_secret &&
|
|
mc mb --ignore-existing local/buzz-media &&
|
|
mc anonymous set none local/buzz-media
|
|
"
|
|
labels:
|
|
com.buzz.service: "minio-init"
|
|
com.buzz.env: "dev"
|
|
restart: "no"
|
|
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
container_name: buzz-prometheus
|
|
ports:
|
|
- "127.0.0.1:9090:9090"
|
|
volumes:
|
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
|
|
- prometheus-data:/prometheus
|
|
networks:
|
|
- buzz-net
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 128m
|
|
labels:
|
|
com.buzz.service: "prometheus"
|
|
com.buzz.env: "dev"
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres-data:
|
|
name: buzz-postgres-data
|
|
labels:
|
|
com.buzz.volume: "postgres"
|
|
minio-data:
|
|
name: buzz-minio-data
|
|
labels:
|
|
com.buzz.volume: "minio"
|
|
prometheus-data:
|
|
name: buzz-prometheus-data
|
|
labels:
|
|
com.buzz.volume: "prometheus"
|
|
|
|
networks:
|
|
buzz-net:
|
|
name: buzz-net
|
|
driver: bridge
|
|
labels:
|
|
com.buzz.network: "dev"
|