forked from hyperb1iss/sibyl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.46 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
# Sibyl Development Database Services
#
# To run multiple instances, use different project names and ports:
# COMPOSE_PROJECT_NAME=sibyl-test SIBYL_FALKORDB_PORT=6390 SIBYL_POSTGRES_PORT=5443 docker compose up -d
#
# Or use a separate env file:
# docker compose --env-file .env.test up -d
services:
falkordb:
image: falkordb/falkordb:latest
container_name: ${COMPOSE_PROJECT_NAME:-sibyl}-falkordb
ports:
- "${SIBYL_FALKORDB_PORT:-6380}:6379"
- "${SIBYL_FALKORDB_BROWSER_PORT:-3335}:3000"
volumes:
- falkordb_data:/data
environment:
- FALKORDB_ARGS=--requirepass ${SIBYL_FALKORDB_PASSWORD:-conventions}
healthcheck:
test: ["CMD", "redis-cli", "-a", "${SIBYL_FALKORDB_PASSWORD:-conventions}", "ping"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
postgres:
image: pgvector/pgvector:pg18
container_name: ${COMPOSE_PROJECT_NAME:-sibyl}-postgres
ports:
- "${SIBYL_POSTGRES_PORT:-5433}:5432"
volumes:
- postgres_data:/var/lib/postgresql
environment:
POSTGRES_USER: ${SIBYL_POSTGRES_USER:-sibyl}
POSTGRES_PASSWORD: ${SIBYL_POSTGRES_PASSWORD:-sibyl_dev}
POSTGRES_DB: ${SIBYL_POSTGRES_DB:-sibyl}
healthcheck:
test:
["CMD-SHELL", "pg_isready -U ${SIBYL_POSTGRES_USER:-sibyl} -d ${SIBYL_POSTGRES_DB:-sibyl}"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
falkordb_data:
postgres_data: