-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (97 loc) · 3.44 KB
/
Copy pathdocker-compose.yml
File metadata and controls
102 lines (97 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# =============================================================================
# NextFlow — Local Development Infrastructure
# =============================================================================
# Services:
# 1. PostgreSQL 16 + pgvector (persistent, health-checked)
# 2. MinIO (S3-compatible local object storage for uploads)
#
# Usage:
# docker compose up -d
# docker compose down (stop, keep volumes)
# docker compose down -v (stop, destroy volumes)
# =============================================================================
services:
# ---------------------------------------------------------------------------
# PostgreSQL 16 with pgvector extension
# ---------------------------------------------------------------------------
postgres:
image: pgvector/pgvector:pg16
container_name: nextflow-postgres
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: nextflow
POSTGRES_PASSWORD: nextflow_dev_pass
POSTGRES_DB: nextflow_dev
volumes:
- nextflow_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nextflow -d nextflow_dev"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
networks:
- nextflow-net
# ---------------------------------------------------------------------------
# MinIO — S3-compatible local object storage
# ---------------------------------------------------------------------------
# Simulates Transloadit/S3 CDN for local image/video upload testing.
# Console UI: http://localhost:9001
# API: http://localhost:9000
# ---------------------------------------------------------------------------
minio:
image: minio/minio
container_name: nextflow-minio
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: nextflow_minio
MINIO_ROOT_PASSWORD: nextflow_minio_secret
volumes:
- nextflow_minio_data:/data
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- nextflow-net
# ---------------------------------------------------------------------------
# MinIO Bootstrap — Creates the default upload bucket on first run
# ---------------------------------------------------------------------------
minio-init:
image: minio/mc
container_name: nextflow-minio-init
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
mc alias set local http://minio:9000 nextflow_minio nextflow_minio_secret;
mc mb local/nextflow-uploads --ignore-existing;
mc anonymous set download local/nextflow-uploads;
echo 'Bucket nextflow-uploads is ready.';
"
networks:
- nextflow-net
# =============================================================================
# Persistent Volumes
# =============================================================================
volumes:
nextflow_postgres_data:
name: nextflow_postgres_data
nextflow_minio_data:
name: nextflow_minio_data
# =============================================================================
# Network
# =============================================================================
networks:
nextflow-net:
name: nextflow-net
driver: bridge