-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (51 loc) · 1.34 KB
/
docker-compose.yaml
File metadata and controls
53 lines (51 loc) · 1.34 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
services:
postgres:
image: pgvector/pgvector:pg16
container_name: lymna-postgres
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-lymna}
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- postgres-data:/var/lib/postgresql/data:rw
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
interval: 5s
timeout: 5s
retries: 20
restart: unless-stopped
networks:
- eliza-network
lymna-agent:
build:
context: .
dockerfile: Dockerfile
image: lymna/sui-agent:local
container_name: lymna-agent
env_file:
- .env
environment:
POSTGRES_URL: ${POSTGRES_URL:-postgresql://postgres:postgres@postgres:5432/lymna}
SERVER_PORT: ${SERVER_PORT:-3000}
NODE_ENV: ${NODE_ENV:-production}
LOG_LEVEL: ${LOG_LEVEL:-info}
ports:
- '3000:3000'
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ['CMD-SHELL', 'curl -fsS http://127.0.0.1:3000/health || exit 1']
interval: 10s
timeout: 5s
retries: 12
start_period: 20s
restart: unless-stopped
networks:
- eliza-network
networks:
eliza-network:
driver: bridge
volumes:
postgres-data: