-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
100 lines (94 loc) · 2.29 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
100 lines (94 loc) · 2.29 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
96
97
98
99
100
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: iqlabs
POSTGRES_USER: iqlabs
POSTGRES_PASSWORD: iqlabs
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
iqlabs-platform-api:
build:
context: .
dockerfile: Dockerfile
command: python src/manage.py runserver 0.0.0.0:8080
env_file:
- .env
environment:
COMPILER_URL: "http://host.docker.internal:4000"
DATAFEED_URL: "http://datafeed:8090"
depends_on:
- postgres
- datafeed
ports:
- "8080:8080"
volumes:
- ./src:/app/src
extra_hosts:
- "host.docker.internal:host-gateway"
dns:
- 1.1.1.1
- 8.8.8.8
- 9.9.9.9
- 208.67.222.222
datafeed:
build:
context: ./services/datafeed
dockerfile: Dockerfile
command: uvicorn main:app --host 0.0.0.0 --port 8090
env_file:
- ./services/datafeed/.env
ports:
- "8090:8090"
volumes:
- ./services/datafeed:/app
dns:
- 1.1.1.1
- 8.8.8.8
- 9.9.9.9
- 208.67.222.222
iqlabs-frontend:
image: node:20-alpine
working_dir: /app
command: >
sh -c "apk add --no-cache python3 build-base libusb-dev eudev-dev linux-headers pkgconfig &&
ln -sf python3 /usr/bin/python &&
npm install --legacy-peer-deps &&
npm run dev -- --host 0.0.0.0 --port 3000"
env_file:
- iqlabs.dev/.env
environment:
PYTHON: "python3"
VITE_BACKEND_URL: "http://localhost:8080"
ports:
- "3000:3000"
volumes:
- ./iqlabs.dev:/app
- frontend_node_modules:/app/node_modules
depends_on:
- iqlabs-platform-api
clickhouse:
image: clickhouse/clickhouse-server:24.3-alpine
restart: unless-stopped
environment:
CLICKHOUSE_DB: iq_replay
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "1"
CLICKHOUSE_LOG_LEVEL: warning
volumes:
- clickhouse_data:/var/lib/clickhouse
- clickhouse_logs:/var/log/clickhouse-server
ports:
- "8123:8123"
- "9000:9000"
healthcheck:
test: ["CMD-SHELL", "clickhouse-client --query='SELECT 1'"]
interval: 30s
timeout: 10s
retries: 10
volumes:
pgdata:
clickhouse_data:
clickhouse_logs:
frontend_node_modules: