Files
imen_pishghaman/docker-compose.dev.yml
T

35 lines
858 B
YAML

# Local infrastructure for development: PostgreSQL + MinIO (S3-compatible storage).
# The apps themselves run on the host with `pnpm dev`.
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_USER: imen
POSTGRES_PASSWORD: imen
POSTGRES_DB: imen
ports:
- "${POSTGRES_PORT:-5435}:5432"
volumes:
- pgdata:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U imen -d imen"]
interval: 5s
timeout: 3s
retries: 10
minio:
image: docker.arvancloud.ir/minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: imen
MINIO_ROOT_PASSWORD: imen-secret-key
ports:
- "9000:9000" # S3 API
- "9001:9001" # web console
volumes:
- miniodata:/data
volumes:
pgdata:
miniodata: