-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
74 lines (69 loc) · 2.13 KB
/
docker-compose.local.yml
File metadata and controls
74 lines (69 loc) · 2.13 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
# Docker Compose for ESSI Studio - Local Development
#
# IMPORTANT: Create a .env file with required credentials before running.
# See .env.example for required variables.
#
# Usage: docker compose -f docker-compose.local.yml up -d
services:
# PostgreSQL database
postgres:
image: postgres:15-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${DB_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}
- POSTGRES_DB=${DB_NAME:-verifiable_ai}
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
# Express backend service
backend:
image: esse_studio/backend:latest
build:
context: .
dockerfile: backend/Dockerfile.workspaces
ports:
- "3001:3001" # Agent port
- "3002:3002" # API port
environment:
- PORT=3002
- AGENT_PORT=3001
- NODE_ENV=production
- PYTHON=/usr/bin/python3
- DATABASE_URL=postgresql://${DB_USER:-postgres}:${POSTGRES_PASSWORD}@postgres:5432/${DB_NAME:-verifiable_ai}
- MAIN_WALLET_ID=${MAIN_WALLET_ID:?MAIN_WALLET_ID is required}
- MAIN_WALLET_KEY=${MAIN_WALLET_KEY:?MAIN_WALLET_KEY is required}
- JWT_SECRET=${JWT_SECRET:?JWT_SECRET is required}
restart: unless-stopped
volumes:
- backend_data:/app/data
depends_on:
postgres:
condition: service_healthy
# Next.js frontend service
# Note: NEXT_PUBLIC_API_URL is injected at container startup (not build time)
frontend:
image: essi_studio/frontend:latest
build:
context: .
dockerfile: frontend/Dockerfile.workspaces
ports:
- "30000:3000"
depends_on:
- backend
environment:
- NODE_ENV=production
# Runtime API URL - injected by docker-entrypoint.sh
- NEXT_PUBLIC_API_URL=http://localhost:3002
volumes:
backend_data:
postgres_data:
networks:
default:
name: esse-studio-network