diff --git a/compose.yaml b/compose.yaml index 86e6850..0628438 100644 --- a/compose.yaml +++ b/compose.yaml @@ -26,6 +26,23 @@ services: timeout: 5s retries: 10 + minio: + image: minio/minio:RELEASE.2025-04-22T22-12-26Z + command: server /data --console-address ":9001" + environment: + MINIO_ROOT_USER: ${MINIO_ROOT_USER} + MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD} + volumes: + - miniodata:/data + ports: + - "127.0.0.1:9000:9000" + - "127.0.0.1:9001:9001" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] + interval: 5s + timeout: 5s + retries: 10 + migrator: build: . command: alembic upgrade head @@ -41,11 +58,17 @@ services: DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB} REDIS_URL: redis://redis:6379/0 SESSION_TTL_SECONDS: 3600 + S3_ENDPOINT: ${S3_ENDPOINT} + S3_ACCESS_KEY: ${S3_ACCESS_KEY} + S3_SECRET_KEY: ${S3_SECRET_KEY} + S3_BUCKET: ${S3_BUCKET} depends_on: postgres: condition: service_healthy redis: condition: service_healthy + minio: + condition: service_healthy migrator: condition: service_completed_successfully @@ -60,4 +83,5 @@ services: volumes: pgdata: - redisdata: \ No newline at end of file + redisdata: + miniodata: \ No newline at end of file