services: postgres-pds: image: postgres:16-alpine container_name: maarcadetweet-pds-db restart: unless-stopped environment: POSTGRES_USER: pds POSTGRES_PASSWORD: pds POSTGRES_DB: pds ports: - "5434:5432" volumes: - pds_pg_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U pds -d pds"] interval: 5s timeout: 3s retries: 5 postgres-appview: image: postgres:16-alpine container_name: maarcadetweet-appview-db restart: unless-stopped environment: POSTGRES_USER: appview POSTGRES_PASSWORD: appview POSTGRES_DB: appview ports: - "5435:5432" volumes: - appview_pg_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U appview -d appview"] interval: 5s timeout: 3s retries: 5 minio: image: minio/minio:latest container_name: maarcadetweet-minio restart: unless-stopped environment: MINIO_ROOT_USER: minioadmin MINIO_ROOT_PASSWORD: minioadmin ports: - "9100:9000" - "9101:9001" command: server /data --console-address ":9001" volumes: - minio_data:/data healthcheck: test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"] interval: 10s timeout: 3s retries: 5 minio-init: image: minio/mc:latest container_name: maarcadetweet-minio-init depends_on: minio: condition: service_healthy entrypoint: > /bin/sh -c " mc alias set local http://minio:9000 minioadmin minioadmin; mc mb -p local/maarcadetweet-pds || true; mc mb -p local/maarcadetweet-appview || true; mc anonymous set download local/maarcadetweet-pds || true; mc anonymous set download local/maarcadetweet-appview || true; exit 0; " volumes: pds_pg_data: appview_pg_data: minio_data: