-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (93 loc) · 2.17 KB
/
docker-compose.yml
File metadata and controls
99 lines (93 loc) · 2.17 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
services:
mysql:
image: mysql:8.0
ports:
- "3304:3306"
environment:
- MYSQL_ROOT_PASSWORD=root_password
- MYSQL_DATABASE=nexus
- MYSQL_USER=nexus
- MYSQL_PASSWORD=nexus_password
volumes:
- mysql-data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-proot_password"]
interval: 5s
timeout: 5s
retries: 20
networks:
- nexus-network
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- "8123:8123"
- "9002:9000"
environment:
- CLICKHOUSE_USER=nexus
- CLICKHOUSE_PASSWORD=nexus_password
- CLICKHOUSE_DB=nexus
volumes:
- clickhouse-data:/var/lib/clickhouse
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8123/ping"]
interval: 10s
timeout: 5s
retries: 10
networks:
- nexus-network
# TypeScript/Bun backend
core:
build:
context: .
dockerfile: Dockerfile.core
ports:
- "8080:8080"
volumes:
- nexus-data:/app/data
environment:
- API_PORT=8080
- DB_USER=nexus
- DB_PASSWORD=nexus_password
- DB_HOST=mysql
- DB_PORT=3306
- DB_NAME=nexus
- DB_CONNECT_RETRIES=30
- DB_CONNECT_DELAY=5000
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PORT=8123
- CLICKHOUSE_USER=nexus
- CLICKHOUSE_PASSWORD=nexus_password
- CLICKHOUSE_DB=nexus
- WEBAUTHN_RP_NAME=Nexus
- WEBAUTHN_RP_ID=start.holroydnet.uk
- WEBAUTHN_RP_ORIGIN=https://start.holroydnet.uk
- HEALTH_CHECK_INTERVAL=5
- ICONS_DIR=/app/data/icons
- WEB_DIST_DIR=/app/web/dist
depends_on:
mysql:
condition: service_healthy
clickhouse:
condition: service_healthy
networks:
- nexus-network
web:
build:
context: .
dockerfile: Dockerfile.web
ports:
- "3008:3000"
environment:
- PORT=3000
- API_URL=http://core:8080
depends_on:
- core
networks:
- nexus-network
networks:
nexus-network:
driver: bridge
volumes:
nexus-data:
mysql-data:
clickhouse-data: