-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 1.02 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
# apflow Docker Compose
#
# Standalone (default — SQLite storage):
# docker compose up -d
#
# With PostgreSQL (distributed/production):
# APFLOW_DATABASE_URL=postgresql+asyncpg://user:pass@db-host/apflow \
# docker compose up -d
#
services:
apflow:
container_name: ${APFLOW_CONTAINER_NAME:-apflow}
build:
context: .
dockerfile: Dockerfile
ports:
- "${APFLOW_API_PORT:-8000}:${APFLOW_API_PORT:-8000}"
env_file:
- path: .env
required: false
volumes:
- apflow-data:/app/.data
environment:
- APFLOW_LOG_LEVEL=${APFLOW_LOG_LEVEL:-INFO}
# Cluster (disabled by default = standalone with SQLite)
- APFLOW_CLUSTER_ENABLED=${APFLOW_CLUSTER_ENABLED:-false}
- APFLOW_NODE_ROLE=${APFLOW_NODE_ROLE:-auto}
- APFLOW_NODE_ID=${APFLOW_NODE_ID:-}
- APFLOW_DATABASE_URL=${APFLOW_DATABASE_URL:-}
# LLM keys
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
restart: unless-stopped
volumes:
apflow-data: