70 lines
1.6 KiB
YAML
70 lines
1.6 KiB
YAML
name: frameflow
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_DB: frameflow
|
|
POSTGRES_USER: frameflow
|
|
POSTGRES_PASSWORD: frameflow
|
|
ports:
|
|
- "54329:5432"
|
|
volumes:
|
|
- frameflow_postgres:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U frameflow -d frameflow"]
|
|
interval: 3s
|
|
timeout: 3s
|
|
retries: 20
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7.4-alpine
|
|
command: ["redis-server", "--appendonly", "yes"]
|
|
ports:
|
|
- "63799:6379"
|
|
volumes:
|
|
- frameflow_redis:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 3s
|
|
timeout: 3s
|
|
retries: 20
|
|
restart: unless-stopped
|
|
|
|
minio:
|
|
image: minio/minio:latest
|
|
command: server /data --console-address ":9001"
|
|
environment:
|
|
MINIO_ROOT_USER: frameflow
|
|
MINIO_ROOT_PASSWORD: frameflow-local-secret
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
volumes:
|
|
- frameflow_minio:/data
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 3s
|
|
timeout: 3s
|
|
retries: 20
|
|
restart: unless-stopped
|
|
|
|
minio-init:
|
|
image: minio/mc:latest
|
|
depends_on:
|
|
minio:
|
|
condition: service_healthy
|
|
entrypoint: >-
|
|
/bin/sh -c "
|
|
mc alias set local http://minio:9000 frameflow frameflow-local-secret &&
|
|
mc mb --ignore-existing local/frameflow &&
|
|
mc anonymous set none local/frameflow
|
|
"
|
|
restart: "no"
|
|
|
|
volumes:
|
|
frameflow_postgres:
|
|
frameflow_redis:
|
|
frameflow_minio:
|