-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 2.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (58 loc) · 2.39 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
# Run with: docker compose up -d
# Open http://127.0.0.1:18080 and configure integrations in the web UI.
# Production deployments should override the three dev-only secrets below.
name: parsar
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: parsar
POSTGRES_PASSWORD: ${PARSAR_PG_PASSWORD:-parsar}
POSTGRES_DB: parsar
volumes:
- ${PARSAR_PG_DATA_DIR:-postgres-data}:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U parsar -d parsar"]
parsar-server:
image: ${PARSAR_SERVER_IMAGE:-ghcr.io/minimax-ai-dev/parsar-server:latest}
pull_policy: ${PARSAR_IMAGE_PULL_POLICY:-always}
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
# Dokploy may add an ingress network; keep internal service DNS available.
networks:
- default
command: ["/bin/sh", "-c", "parsar-migrate && exec /usr/local/bin/parsar-server"]
ports:
- "${PARSAR_BIND_ADDR:-127.0.0.1}:${PARSAR_LOCAL_PORT:-18080}:8080"
environment:
DATABASE_URL: postgres://parsar:${PARSAR_PG_PASSWORD:-parsar}@postgres:5432/parsar?sslmode=disable
PARSAR_PUBLIC_URL: "${PARSAR_PUBLIC_URL:-http://127.0.0.1:${PARSAR_LOCAL_PORT:-18080}}"
PARSAR_AGENT_DAEMON_OWNER_URL: "http://parsar-server:8080"
PARSAR_MASTER_KEY: "${PARSAR_MASTER_KEY:-0000000000000000000000000000000000000000000000000000000000000000}"
PARSAR_SHARED_RUNTIME_TOKEN: "${PARSAR_SHARED_RUNTIME_TOKEN:-parsar-local-runtime-token-change-me}"
PARSAR_AGENT_DAEMON_WS_URL: "ws://parsar-server:8080/agent-daemon/ws"
volumes:
- ${PARSAR_DATA_DIR:-server-data}:/var/lib/parsar
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/healthz >/dev/null"]
parsar-runtime:
image: ${PARSAR_SANDBOX_IMAGE:-ghcr.io/minimax-ai-dev/parsar-sandbox:latest}
pull_policy: ${PARSAR_IMAGE_PULL_POLICY:-always}
restart: unless-stopped
depends_on:
parsar-server:
condition: service_healthy
environment:
PARSAR_SHARED_RUNTIME_TOKEN: "${PARSAR_SHARED_RUNTIME_TOKEN:-parsar-local-runtime-token-change-me}"
command: ["/opt/parsar/bin/runtime-entrypoint.sh"]
volumes:
- parsar-runtime-home:/root/.parsar
- parsar-runtime-workspace:/workspace
volumes:
postgres-data:
server-data:
parsar-runtime-home:
parsar-runtime-workspace: