forked from alfimovd/jupyter-clickhouse-tabix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.16 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
version: '3'
services:
jupyter:
image: jupyter/datascience-notebook
restart: unless-stopped
ports:
- 8888:8888
environment:
NB_UID: 1000
NB_GID: 100
links:
- clickhouse
volumes:
- ./jupyter-data-dir:/home/jovyan/work
- ./clickhouse_helper.py:/home/jovyan/work/clickhouse_helper.py
# for password using generate pwd hash IPython.lib.passwd()
# command: start-notebook.sh --NotebookApp.password='sha1:{Generate with IPython.lib.passwd()}'
tabix:
image: spoonest/clickhouse-tabix-web-client
restart: unless-stopped
links:
- clickhouse
ports:
- 8080:80
# environment:
# USER: user
# PASSWORD: password
clickhouse:
build: ./clickhouse
restart: unless-stopped
ports:
- 8123:8123 # for http clients
- 9000:9000 # for console client
volumes:
# Store data to HDD
- ./clickhouse-data:/var/lib/clickhouse/
# Base Clickhouse cfg
- ./clickhouse/config.xml:/etc/clickhouse-server/config.xml
- ./clickhouse/users.xml:/etc/clickhouse-server/users.xml
ulimits:
nofile:
soft: 262144
hard: 262144