-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
128 lines (123 loc) · 3.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
128 lines (123 loc) · 3.69 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
services:
postgres:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: nexis
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d nexis"]
interval: 5s
timeout: 5s
retries: 20
volumes:
- postgres-data:/var/lib/postgresql/data
control-api:
image: ghcr.io/triformine/control-api:${NEXIS_IMAGE_TAG:-latest}
environment:
PORT: 3000
DATABASE_URL: postgres://postgres:postgres@postgres:5432/nexis
NEXIS_MASTER_SECRET: ${NEXIS_MASTER_SECRET:-change-me}
NEXIS_INTERNAL_TOKEN: ${NEXIS_INTERNAL_TOKEN:-change-me}
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET:-change-me}
NEXIS_AUTH_BASE_URL: http://control-api:3000
NEXIS_DASHBOARD_ADMIN_EMAIL: ${NEXIS_DASHBOARD_ADMIN_EMAIL:-admin@nexis.local}
NEXIS_DASHBOARD_ADMIN_PASSWORD: ${NEXIS_DASHBOARD_ADMIN_PASSWORD:-ChangeMe!123456}
NEXIS_DASHBOARD_ADMIN_NAME: ${NEXIS_DASHBOARD_ADMIN_NAME:-Nexis Admin}
NEXIS_AUTH_ALLOW_SIGNUP: ${NEXIS_AUTH_ALLOW_SIGNUP:-0}
NEXIS_DEMO_PROJECT_ID: demo-project
NEXIS_DEMO_KEY_ID: demo-key
NEXIS_DEMO_PROJECT_SECRET: demo-secret
depends_on:
postgres:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"bun",
"-e",
"const r=await fetch('http://127.0.0.1:3000/health'); if(!r.ok) process.exit(1);",
]
interval: 5s
timeout: 3s
retries: 20
ports:
- "3000:3000"
rust-server:
image: ghcr.io/triformine/rust-server:${NEXIS_IMAGE_TAG:-latest}
environment:
NEXIS_BIND: 0.0.0.0:4000
NEXIS_MASTER_SECRET: ${NEXIS_MASTER_SECRET:-change-me}
NEXIS_CONTROL_API_URL: http://control-api:3000
NEXIS_INTERNAL_TOKEN: ${NEXIS_INTERNAL_TOKEN:-change-me}
NEXIS_AUTH_MODE: ${NEXIS_AUTH_MODE:-required}
NEXIS_SESSION_TTL_SECONDS: ${NEXIS_SESSION_TTL_SECONDS:-30}
NEXIS_ROOM_TICK_MS: 100
NEXIS_STATE_SNAPSHOT_EVERY_PATCHES: 20
NEXIS_STATE_PATCH_CHECKSUM_EVERY_PATCHES: 10
NEXIS_METRICS_BIND: 0.0.0.0:9100
NEXIS_DEMO_PROJECT_ID: demo-project
NEXIS_DEMO_PROJECT_SECRET: demo-secret
NEXIS_ROOM_TYPE_PLUGINS: ${NEXIS_ROOM_TYPE_PLUGINS:-}
NEXIS_WASM_ROOM_PLUGINS: ${NEXIS_WASM_ROOM_PLUGINS:-}
depends_on:
control-api:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "nc -z 127.0.0.1 4000"]
interval: 5s
timeout: 3s
retries: 20
ports:
- "4000:4000"
- "9100:9100"
dashboard-ui:
image: ghcr.io/triformine/dashboard-ui:${NEXIS_IMAGE_TAG:-latest}
environment:
PORT: 5173
CONTROL_API_URL: http://control-api:3000
RUNTIME_ADMIN_URL: http://rust-server:9100
NEXIS_INTERNAL_TOKEN: ${NEXIS_INTERNAL_TOKEN:-change-me}
depends_on:
control-api:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"bun",
"-e",
"const r=await fetch('http://127.0.0.1:5173/'); if(!r.ok) process.exit(1);",
]
interval: 5s
timeout: 3s
retries: 20
ports:
- "5173:5173"
web-demo:
image: ghcr.io/triformine/web-demo:${NEXIS_IMAGE_TAG:-latest}
environment:
PORT: 8080
depends_on:
rust-server:
condition: service_healthy
control-api:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"bun",
"-e",
"const r=await fetch('http://127.0.0.1:8080/'); if(!r.ok) process.exit(1);",
]
interval: 5s
timeout: 3s
retries: 20
ports:
- "8080:8080"
volumes:
postgres-data: