Skip to content

Commit f142e44

Browse files
committed
chore: removed unused containers among others prometheus and attestation
1 parent 57817ad commit f142e44

File tree

6 files changed

+17
-152
lines changed

6 files changed

+17
-152
lines changed

caddy/Caddyfile.http

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66

77
# Use :80 explicitly to force HTTP-only behavior
88
:80 {
9-
handle_path /grafana/* {
10-
uri strip_prefix /grafana
11-
reverse_proxy grafana:3000
12-
}
13-
149
handle_path /nuc/* {
1510
uri strip_prefix /nuc
1611
reverse_proxy nilai-nuc-api:8080

docker-compose.dev.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ services:
3939
- ./nilai-api/:/app/nilai-api/
4040
- ./packages/:/app/packages/
4141
- ./nilai-auth/nuc-helpers/:/app/nilai-auth/nuc-helpers/
42-
attestation:
43-
ports:
44-
- "8081:8080"
45-
env_file:
46-
- .env
47-
volumes:
48-
- ./nilai-attestation/:/app/nilai-attestation/
49-
- ./packages/:/app/packages/
5042
redis:
5143
ports:
5244
- "6379:6379"
@@ -68,6 +60,20 @@ services:
6860
start_period: 10s
6961
timeout: 10s
7062
grafana:
63+
container_name: grafana
64+
image: 'grafana/grafana:11.5.1'
65+
restart: unless-stopped
66+
user: "$UID:$GID"
67+
depends_on:
68+
- prometheus
69+
environment:
70+
- GF_USERS_ALLOW_SIGN_UP=false
71+
healthcheck:
72+
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
73+
interval: 30s
74+
timeout: 10s
75+
retries: 3
76+
start_period: 10s
7177
env_file:
7278
- .env
7379
ports:
@@ -77,10 +83,6 @@ services:
7783
- ${PWD}/grafana/datasources/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
7884
- ${PWD}/grafana/dashboards/filesystem.yml:/etc/grafana/provisioning/dashboards/filesystem.yml
7985
- ${PWD}/grafana/config/grafana.ini:/etc/grafana/grafana.ini
80-
prometheus:
81-
volumes:
82-
- ${PWD}/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
83-
- ${PWD}/prometheus/data:/prometheus/data
8486
nilauth-postgres:
8587
image: postgres:16-alpine
8688
environment:

docker-compose.prod.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
services:
2-
prometheus:
3-
volumes:
4-
- ${FILES}/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
5-
- prometheus_data:/prometheus/data
6-
grafana:
7-
env_file:
8-
- .env.mainnet
9-
volumes:
10-
- ${FILES}/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
11-
- ${FILES}/grafana/filesystem.yml:/etc/grafana/provisioning/dashboards/filesystem.yml
12-
- ${FILES}/grafana/grafana.ini:/etc/grafana/grafana.ini
13-
- ${FILES}/grafana/nuc-query-data.json:/var/lib/grafana/dashboards/nuc-query-data.json
14-
- ${FILES}/grafana/query-data.json:/var/lib/grafana/dashboards/query-data.json
2+
153
api:
164
env_file:
175
- .env.mainnet
@@ -29,15 +17,5 @@ services:
2917
- .env.mainnet
3018
volumes:
3119
- ${FILES}/caddy/caddyfile:/etc/caddy/Caddyfile
32-
attestation:
33-
env_file:
34-
- .env.mainnet
35-
deploy:
36-
resources:
37-
reservations:
38-
devices:
39-
- driver: nvidia
40-
count: 1
41-
capabilities: [gpu]
4220
#volumes:
4321
# - /dev/sev-guest:/dev/sev-guest # for AMD SEV

docker-compose.testnet.prod.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,3 @@ services:
1111
- POSTGRES_DB=${POSTGRES_DB_TESTNET}
1212
volumes:
1313
- ${FILES}/testnet/nilai-api/config.yaml:/app/nilai-api/src/nilai_api/config/config.yaml
14-
grafana:
15-
env_file:
16-
- .env.mainnet
17-
volumes:
18-
- ${FILES}/grafana/testnet-nuc-query-data.json:/var/lib/grafana/dashboards/testnet-nuc-query-data.json

docker-compose.yml

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -22,51 +22,6 @@ services:
2222
timeout: 10s
2323
retries: 3
2424
start_period: 5s
25-
26-
prometheus:
27-
container_name: prometheus
28-
image: prom/prometheus:v3.1.0
29-
restart: unless-stopped
30-
user: "$UID:$GID"
31-
command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.retention.time=30d --web.enable-admin-api"
32-
healthcheck:
33-
test: ["CMD", "wget", "http://localhost:9090/-/healthy", "-O", "/dev/null", "-o", "/dev/null"]
34-
interval: 30s
35-
timeout: 10s
36-
retries: 3
37-
start_period: 10s
38-
39-
node_exporter:
40-
container_name: node-exporter
41-
image: quay.io/prometheus/node-exporter:v1.8.2
42-
command:
43-
- '--path.rootfs=/host'
44-
restart: unless-stopped
45-
# volumes:
46-
# - '/:/host:ro,rslave'
47-
healthcheck:
48-
test: ["CMD", "wget", "http://localhost:9100/", "-O", "/dev/null", "-o", "/dev/null"]
49-
interval: 30s
50-
timeout: 10s
51-
retries: 3
52-
start_period: 10s
53-
54-
grafana:
55-
container_name: grafana
56-
image: 'grafana/grafana:11.5.1'
57-
restart: unless-stopped
58-
user: "$UID:$GID"
59-
depends_on:
60-
- prometheus
61-
environment:
62-
- GF_USERS_ALLOW_SIGN_UP=false
63-
healthcheck:
64-
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
65-
interval: 30s
66-
timeout: 10s
67-
retries: 3
68-
start_period: 10s
69-
7025
api:
7126
container_name: nilai-api
7227
image: nillion/nilai-api:latest
@@ -97,16 +52,6 @@ services:
9752
retries: 3
9853
start_period: 15s
9954
timeout: 10s
100-
attestation:
101-
image: nillion/nilai-attestation:latest
102-
restart: unless-stopped
103-
healthcheck:
104-
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
105-
interval: 30s
106-
retries: 3
107-
start_period: 15s
108-
timeout: 10s
109-
11055
caddy:
11156
image: caddy:latest
11257
container_name: caddy

uv.lock

Lines changed: 2 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)