Files
buzz/docker-compose.yml
T
+1 14fba21e57 Multi-tenant Buzz relay: community_id as a server-resolved key (comprehensive rewrite) (#1321)
Signed-off-by: tlongwell-block <109685178+tlongwell-block@users.noreply.github.com>
Signed-off-by: npub1jh9wn95s0472h86ahapupaf7m6kx4v9sx2n0atj2hltcfer8k06s5n3pyf <95cae996907d7cab9f5dbf43c0f53edeac6ab0b032a6feae4abfd784e467b3f5@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub17jjz49l9jjmhhk7cac63j8yt9z555n9cw8vk7v5jz4vzw4ppld5qgj57cc <f4a42a97e594b77bdbd8ee35191c8b28a94a4cb871d96f32921558275421fb68@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: Eva <011987e296fd5006292d2f930b574be47c7801048d1983c46c425d3c95f0cffd@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: Mari <95cae996907d7cab9f5dbf43c0f53edeac6ab0b032a6feae4abfd784e467b3f5@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: Sami <f4a42a97e594b77bdbd8ee35191c8b28a94a4cb871d96f32921558275421fb68@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: Max <d8473ee32b973aa31a21a65adddcc4b69cc2a8a4dee8121ecd51926e0cddbc02@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: Quinn <96f056ad5f2305c8ddf637dc65d048aa4c12d7daeb8867690e34fca46b0ef64c@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: Dawn <c6237ef84fa537c78dcee78efd2d4e59f728859c7f194da42ac51ededfa0be05@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Co-authored-by: Sami <sami@sprout-oss.stage.blox.sqprod.co>
Co-authored-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co>
2026-06-29 12:39:02 -04:00

192 lines
4.2 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:
- "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:
- "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:
- "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:
- "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: minio/minio:latest
container_name: buzz-minio
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: buzz_dev
MINIO_ROOT_PASSWORD: buzz_dev_secret
ports:
- "9000:9000"
- "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: minio/mc:latest
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:
- "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"