-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·48 lines (45 loc) · 1.07 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
45
46
47
48
version: "2.2"
x-common_variables: &common_variables
# ++ env_file: environment-of-cubist
services:
openai:
depends_on:
clickhouse:
condition: service_healthy
image: openai
hostname: openai
container_name: openai
environment:
CLICKHOUSE_HOST: clickhouse
CLICKHOUSE_USERNAME: lupi
CLICKHOUSE_PASSWORD: lupi
CLICKHOUSE_PORT: 8123
CLICKHOUSE_DATABASE: openai
ports:
- 5000:5000
working_dir: /app
stdin_open: true
tty: true
#command: bash
volumes:
- .:/app/
clickhouse:
image: clickhouse/clickhouse-server
hostname: clickhouse
container_name: clickhouse
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1
environment:
CLICKHOUSE_DB: openai
CLICKHOUSE_USER: lupi
CLICKHOUSE_PASSWORD: lupi
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "1"
volumes:
- clickhouse-data:/var/lib/clickhouse
ports:
- 8123:8123
- 9000:9000
ulimits:
nofile: 262144
volumes:
clickhouse-data: