-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (109 loc) · 2.75 KB
/
docker-compose.yml
File metadata and controls
110 lines (109 loc) · 2.75 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
networks:
default:
name: bard
services:
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3.11.2
ports:
- "5672:5672"
restart: always
#wait for rabbit mq to be fully started up
healthcheck:
test: ["CMD", "rabbitmqctl", "await_startup"]
interval: 15s
timeout: 10s
retries: 10
clickhouse:
container_name: clickhouse
image: clickhouse/clickhouse-server
#ch needs rabbit mq operational to create a rabbit mq table
depends_on:
rabbitmq:
condition: service_healthy
ports:
- "8123:8123"
#ping clickhouse as a health check
healthcheck:
test: ["CMD", "wget", "localhost:8123/ping"]
interval: 15s
timeout: 10s
retries: 10
restart: always
volumes:
- ch:/var/lib/clickhouse/
- ch_logs:/val/log/clickhouse-server/
- ./clickhouse_initialization_scripts:/docker-entrypoint-initdb.d
- ./clickhouse_server_config/config.xml:/etc/clickhouse-server/config.xml
postgres:
container_name: postgres
image: postgres:15
volumes:
- ./postgres_initialization_scripts:/docker-entrypoint-initdb.d
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
restart: always
agent-api:
container_name: agent-api
image: bardrr/agent-api
environment:
- PGHOST=postgres
- PGPORT=5432
- PGUSER=user
- PGPASSWORD=password
- PGDATABASE=bard
- RABBITMQ_HOST=rabbitmq
- CLICKHOUSE_HOST=clickhouse
- ACCESS_TOKEN_SECRET='26f08d4369fecdcef0d05efd2732dab2dad7aa2357df5af39b180052fa151c9140d5f2e6cb684bf5c21cee7d448074a3b7606cad191ebb977af4d4221c71cd75d6'
ports:
- "3001:3001"
restart: always
depends_on:
postgres:
condition: service_started
rabbitmq:
condition: service_healthy
clickhouse:
condition: service_healthy
session_ender:
container_name: session_ender
image: bardrr/session_ender:latest
depends_on:
postgres:
condition: service_started
clickhouse:
condition: service_healthy
environment:
- PGHOST=postgres
- PGPORT=5432
- PGUSER=user
- PGPASSWORD=password
- PGDATABASE=bard
- CLICKHOUSE_HOST=clickhouse
restart: always
replayer:
container_name: replayer
image: bardrr/replayer:latest
depends_on:
postgres:
condition: service_started
clickhouse:
condition: service_healthy
restart: always
environment:
- PGHOST=postgres
- PGPORT=5432
- PGUSER=user
- PGPASSWORD=password
- PGDATABASE=bard
- CHHOST=clickhouse
ports:
- "3003:3003"
volumes:
ch:
ch_logs:
pgdata: