-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
95 lines (89 loc) · 2.45 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
95 lines (89 loc) · 2.45 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
services:
builder:
build:
context: ./builder
dockerfile: Dockerfile
volumes:
- ./:/app
- go-cache:/root/.cache/go-build
- go-mod-cache:/root/go/pkg/mod
working_dir: /app
command: bash -c "cd /app && npm ci && GOFLAGS=-buildvcs=false mage -v build:Backend && npm run build"
grafana:
user: root
container_name: 'quesma-oql-app'
build:
context: .config/
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
grafana_version: ${GRAFANA_VERSION:-11.5.2}
development: ${DEVELOPMENT:-false}
anonymous_auth_enabled: ${ANONYMOUS_AUTH_ENABLED:-true}
ports:
- 3000:3000/tcp
- 2345:2345/tcp # delve
security_opt:
- 'apparmor:unconfined'
- 'seccomp:unconfined'
cap_add:
- SYS_PTRACE
volumes:
- ./dist:/var/lib/grafana/plugins/quesma-oql-app
- ./provisioning:/etc/grafana/provisioning
- .:/root/quesma-oql-app
env_file:
- ./.env
environment:
NODE_ENV: development
GF_LOG_FILTERS: plugin.quesma-oql-app:debug
GF_LOG_LEVEL: debug
GF_DATAPROXY_LOGGING: 1
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: quesma-oql-app
depends_on:
builder:
condition: service_completed_successfully
npm-dev-server:
condition: service_healthy
npm-dev-server:
build:
context: ./builder
dockerfile: Dockerfile
volumes:
- .:/app
working_dir: /app
ports:
- "8080:8080"
- "35729:35729"
command: npm run dev
depends_on:
builder:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:35729"]
interval: 1s
timeout: 1s
start_period: 1s
retries: 5
clickhouse:
image: clickhouse/clickhouse-server:24.5.3.5-alpine
ports:
- "18123:8123"
- "19000:9000"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://clickhouse:8123/ping || exit 1
interval: 1s
timeout: 1s
start_period: 1m
data-loader:
container_name: data-loader
image: python:3.9-slim
volumes:
- ./datasets:/app
working_dir: /app
depends_on:
clickhouse:
condition: service_healthy
command: bash -c "pip install clickhouse-driver && python load_ips.py && python load_apache.py && python load_hadoop.py && python load_linux.py && python load_openssh.py"
volumes:
go-cache:
go-mod-cache: