-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.3 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.3 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
services:
index-postgresql:
build:
context: .
dockerfile: Dockerfile
container_name: index-postgresql
image: index-postgresql-timescaledb:latest
restart: unless-stopped
command: postgres -c shared_preload_libraries=timescaledb
environment:
POSTGRES_DB: future_index
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d future_index" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
index-clickhouse:
build:
context: .
dockerfile: Dockerfile.clickhouse
container_name: index-clickhouse
image: index-clickhouse:latest
restart: unless-stopped
ports:
- "8123:8123" # HTTP interface
- "9000:9000" # Native interface
volumes:
- clickhouse_data:/var/lib/clickhouse
- ./database/clickhouse/config/users.xml:/etc/clickhouse-server/users.d/users.xml
ulimits:
nofile:
soft: 262144
hard: 262144
healthcheck:
test: [ "CMD-SHELL", "clickhouse-client --query 'SELECT 1'" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
postgres_data:
clickhouse_data: