services:
db:
image: postgres
container_name: pg-db
restart: unless-stopped
volumes:
- ./data/postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
ports:
- "127.0.0.1:5432:5432"
minio:
image: quay.io/minio/minio
container_name: minio
restart: unless-stopped
ports:
- "0.0.0.0:9000:9000"
- "0.0.0.0:9001:9001"
volumes:
- ./data/minio-data:/data
environment:
MINIO_ROOT_USER: ${S3_USERNAME}
MINIO_ROOT_PASSWORD: ${S3_PASSWORD}
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 180s
timeout: 20s
retries: 3
start_period: 60s
redis:
image: redis:latest
restart: unless-stopped
ports:
- '0.0.0.0:6379:6379'
command: redis-server --requirepass ${KV_PASSWORD}