name: user-manager services: db: image: postgres:16.4 container_name: user-manager-dev-deb restart: unless-stopped ports: - "5432:5432" environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: user-manager volumes: - user-manager-db-data:/var/lib/postgresql/data minio: image: quay.io/minio/minio:RELEASE.2024-09-13T20-26-02Z container_name: user-manager-dev-minio restart: unless-stopped ports: - "9000:9000" - "9001:9001" environment: MINIO_ROOT_USER: miniodev MINIO_ROOT_PASSWORD: miniodevpw volumes: - user-manager-minio-data:/data command: minio server /data --console-address ":9001" make-minio-buckets: image: minio/mc restart: no container_name: user-manager-dev-minio-mc depends_on: - minio entrypoint: sh command: - -c - | mc alias set minio http://minio:9000 miniodev miniodevpw; mc mb minio/usermanager-dev; mc admin user add minio usermanagerdevaccesskey usermanagerdevsecretkey; mc admin policy create minio usermanager-dev-rw-access /tmp/minio-policy.json; mc admin policy attach minio usermanager-dev-rw-access --user usermanageraccesskey; mc admin user info minio usermanagerdevaccesskey; exit 0; volumes: - ./misc/minio-policy.json:/tmp/minio-policy.json volumes: user-manager-db-data: user-manager-minio-data: