-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.06 KB
/
docker-compose.yml
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
version: '3.7'
services:
# Postgres service
postgres:
image: postgres:16.3-alpine3.20
environment:
POSTGRES_PASSWORD: postchain
POSTGRES_DB: postchain
POSTGRES_USER: postchain
init: true
network_mode: host
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postchain -d postchain -h localhost -p 5432"]
interval: 10s
retries: 3
# Chromia node service
chr-node:
image: registry.gitlab.com/chromaway/core-tools/chromia-cli/chr:0.22.4
command: ["chr", "node", "start", "-s", "/usr/app/chromia.yml"]
container_name: my-chr-node
init: true
network_mode: host
restart: unless-stopped
volumes:
- ./src:/usr/app/src
- ./chromia.yml:/usr/app/chromia.yml
depends_on:
postgres:
condition: service_healthy
# Bun service
bun:
image: kalpita888/bun:0.1.0
container_name: my-chat-agent
environment:
- XAI_API_KEY=${XAI_API_KEY}
init: true
network_mode: host
restart: unless-stopped
depends_on:
- chr-node