-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.1 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
services:
postgres:
image: pgvector/pgvector:pg16
ports:
- "${ONEQUERY_POSTGRES_HOST_PORT}:${ONEQUERY_POSTGRES_CONTAINER_PORT}"
environment:
POSTGRES_DB: ${ONEQUERY_POSTGRES_DB}
POSTGRES_USER: ${ONEQUERY_POSTGRES_USER}
POSTGRES_PASSWORD: ${ONEQUERY_POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${ONEQUERY_POSTGRES_USER} -d ${ONEQUERY_POSTGRES_DB}",
]
interval: 2s
timeout: 5s
retries: 10
start_period: 10s
# Ephemeral agent runner - spawned per /agent/run request
# This service is only used for building the image.
# The gateway spawns containers using `docker run --rm onequery-agent-runner`
# Usage: LOCAL_AGENT=1 bun dev
agent-runner:
image: onequery-agent-runner
build:
context: .
dockerfile: apps/agent/Dockerfile.runner
# This service is not meant to run via docker-compose
# It's spawned by the gateway with `docker run --rm`
profiles:
- build-only
volumes:
postgres_data: