Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions caddy/Caddyfile.http
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

# Use :80 explicitly to force HTTP-only behavior
:80 {
handle_path /grafana/* {
uri strip_prefix /grafana
reverse_proxy grafana:3000
}

handle_path /nuc/* {
uri strip_prefix /nuc
reverse_proxy nilai-nuc-api:8080
Expand Down
26 changes: 14 additions & 12 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ services:
- ./nilai-api/:/app/nilai-api/
- ./packages/:/app/packages/
- ./nilai-auth/nuc-helpers/:/app/nilai-auth/nuc-helpers/
attestation:
ports:
- "8081:8080"
env_file:
- .env
volumes:
- ./nilai-attestation/:/app/nilai-attestation/
- ./packages/:/app/packages/
redis:
ports:
- "6379:6379"
Expand All @@ -68,6 +60,20 @@ services:
start_period: 10s
timeout: 10s
grafana:
container_name: grafana
image: 'grafana/grafana:11.5.1'
restart: unless-stopped
user: "$UID:$GID"
depends_on:
- prometheus
environment:
- GF_USERS_ALLOW_SIGN_UP=false
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
Comment on lines 70 to +76
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The grafana service has a dependency on prometheus service, but prometheus service has been removed from the main docker-compose.yml file. This will cause the grafana container to fail to start.

Copilot uses AI. Check for mistakes.

env_file:
- .env
ports:
Expand All @@ -77,10 +83,6 @@ services:
- ${PWD}/grafana/datasources/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ${PWD}/grafana/dashboards/filesystem.yml:/etc/grafana/provisioning/dashboards/filesystem.yml
- ${PWD}/grafana/config/grafana.ini:/etc/grafana/grafana.ini
prometheus:
volumes:
- ${PWD}/prometheus/config/prometheus.yml:/etc/prometheus/prometheus.yml
- ${PWD}/prometheus/data:/prometheus/data
nilauth-postgres:
image: postgres:16-alpine
environment:
Expand Down
24 changes: 1 addition & 23 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
services:
prometheus:
volumes:
- ${FILES}/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus/data
grafana:
env_file:
- .env.mainnet
volumes:
- ${FILES}/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ${FILES}/grafana/filesystem.yml:/etc/grafana/provisioning/dashboards/filesystem.yml
- ${FILES}/grafana/grafana.ini:/etc/grafana/grafana.ini
- ${FILES}/grafana/nuc-query-data.json:/var/lib/grafana/dashboards/nuc-query-data.json
- ${FILES}/grafana/query-data.json:/var/lib/grafana/dashboards/query-data.json

api:
env_file:
- .env.mainnet
Expand All @@ -29,15 +17,5 @@ services:
- .env.mainnet
volumes:
- ${FILES}/caddy/caddyfile:/etc/caddy/Caddyfile
attestation:
env_file:
- .env.mainnet
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
#volumes:
# - /dev/sev-guest:/dev/sev-guest # for AMD SEV
5 changes: 0 additions & 5 deletions docker-compose.testnet.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@ services:
- POSTGRES_DB=${POSTGRES_DB_TESTNET}
volumes:
- ${FILES}/testnet/nilai-api/config.yaml:/app/nilai-api/src/nilai_api/config/config.yaml
grafana:
env_file:
- .env.mainnet
volumes:
- ${FILES}/grafana/testnet-nuc-query-data.json:/var/lib/grafana/dashboards/testnet-nuc-query-data.json
55 changes: 0 additions & 55 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,51 +22,6 @@ services:
timeout: 10s
retries: 3
start_period: 5s

prometheus:
container_name: prometheus
image: prom/prometheus:v3.1.0
restart: unless-stopped
user: "$UID:$GID"
command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.retention.time=30d --web.enable-admin-api"
healthcheck:
test: ["CMD", "wget", "http://localhost:9090/-/healthy", "-O", "/dev/null", "-o", "/dev/null"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s

node_exporter:
container_name: node-exporter
image: quay.io/prometheus/node-exporter:v1.8.2
command:
- '--path.rootfs=/host'
restart: unless-stopped
# volumes:
# - '/:/host:ro,rslave'
healthcheck:
test: ["CMD", "wget", "http://localhost:9100/", "-O", "/dev/null", "-o", "/dev/null"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s

grafana:
container_name: grafana
image: 'grafana/grafana:11.5.1'
restart: unless-stopped
user: "$UID:$GID"
depends_on:
- prometheus
environment:
- GF_USERS_ALLOW_SIGN_UP=false
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s

api:
container_name: nilai-api
image: nillion/nilai-api:latest
Expand Down Expand Up @@ -97,16 +52,6 @@ services:
retries: 3
start_period: 15s
timeout: 10s
attestation:
image: nillion/nilai-attestation:latest
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
retries: 3
start_period: 15s
timeout: 10s

caddy:
image: caddy:latest
container_name: caddy
Expand Down
Empty file removed nilai-attestation/README.md
Empty file.
18 changes: 0 additions & 18 deletions nilai-attestation/gunicorn.conf.py

This file was deleted.

23 changes: 0 additions & 23 deletions nilai-attestation/pyproject.toml

This file was deleted.

Empty file.
51 changes: 0 additions & 51 deletions nilai-attestation/src/nilai_attestation/app.py

This file was deleted.

44 changes: 0 additions & 44 deletions nilai-attestation/src/nilai_attestation/attestation/__init__.py

This file was deleted.

This file was deleted.

Loading
Loading