-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
113 lines (105 loc) · 2.96 KB
/
docker-compose.yml
File metadata and controls
113 lines (105 loc) · 2.96 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
103
104
105
106
107
108
109
110
111
112
113
# Data Workers - Development Environment
# Usage:
# docker compose up -d # Start infra + app
# docker compose up -d postgres redis # Start infra only
# docker compose -f docker-compose.yml -f docker-compose.dev.yml up # Dev mode with hot-reload
# docker compose -f docker-compose.yml -f docker/docker-compose.agents.yml up # Full agent swarm
services:
# ---------------------------------------------------------------------------
# Infrastructure
# ---------------------------------------------------------------------------
postgres:
image: ankane/pgvector:v0.8.0-pg16
container_name: dw-postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: data_workers
POSTGRES_USER: dw_user
POSTGRES_PASSWORD: dw_local_dev
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dw_user -d data_workers"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- dw-network
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: dw-redis
ports:
- "6379:6379"
command: redis-server --appendonly yes
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
networks:
- dw-network
restart: unless-stopped
neo4j:
image: neo4j:5-community
container_name: dw-neo4j
ports:
- "7474:7474" # HTTP browser
- "7687:7687" # Bolt protocol
environment:
NEO4J_AUTH: neo4j/dw_local_dev
volumes:
- neo4j-data:/data
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:7474 || exit 1"]
interval: 15s
timeout: 10s
retries: 5
start_period: 30s
networks:
- dw-network
restart: unless-stopped
# ---------------------------------------------------------------------------
# Data Workers Application
# ---------------------------------------------------------------------------
data-workers:
build:
context: .
dockerfile: Dockerfile
container_name: dw-app
ports:
- "3000:3000"
environment:
NODE_ENV: production
DW_AGENT_NAME: dw-pipelines
DW_AGENT_PORT: "3000"
# Factory-pattern env vars (matches DEPLOYMENT.md)
DATABASE_URL: postgresql://dw_user:dw_local_dev@postgres:5432/data_workers
REDIS_URL: redis://redis:6379
NEO4J_URI: bolt://neo4j:7687
NEO4J_PASSWORD: dw_local_dev
PGVECTOR_ENABLED: "true"
PG_FTS_ENABLED: "true"
LOG_LEVEL: info
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
neo4j:
condition: service_healthy
networks:
- dw-network
restart: unless-stopped
volumes:
postgres-data:
redis-data:
neo4j-data:
networks:
dw-network:
driver: bridge