forked from championswimmer/onepixel_backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
85 lines (81 loc) · 1.85 KB
/
docker-compose.yaml
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
version: "3.0"
services:
onepixel:
container_name: onepixel
build:
dockerfile: Dockerfile
context: .
ports:
- "3000:3000"
expose:
- "3000"
depends_on:
postgres:
condition: service_healthy
links:
- postgres
postgres:
container_name: postgres
image: postgres:15-alpine
volumes:
- ./data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: onepixel
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 3s
timeout: 3s
retries: 3
expose:
- "5432"
ports:
- "5432:5432"
clickhouse:
container_name: clickhouse
image: clickhouse/clickhouse-server
volumes:
- ./clk_data:/var/lib/clickhouse
- ./clk_logs:/var/log/clickhouse-server
environment:
CLICKHOUSE_USER: clickhouse
CLICKHOUSE_PASSWORD: clickhouse
CLICKHOUSE_DB: onepixel
healthcheck:
test: [ "CMD-SHELL", "clickhouse-client --user=clickhouse --password=clickhouse --query=\"SELECT 1\"" ]
interval: 3s
timeout: 3s
retries: 3
expose:
- "8123"
- "9000"
ports:
- "8123:8123"
- "9000:9000"
metabase:
container_name: metabase
build:
dockerfile: metabase/Dockerfile
context: .
args:
METABASE_VERSION: "v0.48.6"
METABASE_CLICKHOUSE_DRIVER_VERSION: "1.3.2"
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: metabase
MB_DB_PORT: 5432
MB_DB_USER: metabase
MB_DB_PASS: metabase
MB_DB_HOST: postgres
MB_EMOJI_IN_LOGS: "true"
MB_JETTY_PORT: 3232
expose:
- "3232"
ports:
- "3232:3232"
depends_on:
postgres:
condition: service_healthy
clickhouse:
condition: service_healthy