From f650dbaf13b52e30ef9798b1334e677fbee00cab Mon Sep 17 00:00:00 2001 From: Timothy Date: Tue, 13 Jan 2026 20:35:17 -0800 Subject: [PATCH] chore: silencing frontend logs --- docker-compose.yml | 5 ++++- honeycomb/Dockerfile | 5 +++-- honeycomb/nginx.conf | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bc9552dc..3ab01bf5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -76,6 +76,7 @@ services: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_DB=aden_tsdb + command: ["postgres", "-c", "log_min_messages=warning", "-c", "log_statement=none"] volumes: - timescaledb_data:/var/lib/postgresql/data # Auto-run schema files on first startup (alphabetical order) @@ -98,10 +99,11 @@ services: container_name: honeycomb-mongodb ports: - "${MONGODB_PORT:-27017}:27017" + command: ["mongod", "--quiet", "--logpath", "/dev/null"] volumes: - mongodb_data:/data/db healthcheck: - test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"] + test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping')"] interval: 10s timeout: 5s retries: 5 @@ -116,6 +118,7 @@ services: container_name: honeycomb-redis ports: - "${REDIS_PORT:-6379}:6379" + command: ["redis-server", "--loglevel", "warning"] volumes: - redis_data:/data healthcheck: diff --git a/honeycomb/Dockerfile b/honeycomb/Dockerfile index aec1a827..a00f0d8f 100644 --- a/honeycomb/Dockerfile +++ b/honeycomb/Dockerfile @@ -31,5 +31,6 @@ COPY --from=builder /app/dist /usr/share/nginx/html # Expose port EXPOSE 3000 -# Start nginx -CMD ["nginx", "-g", "daemon off;"] +# Override the default entrypoint to skip noisy scripts +ENTRYPOINT [] +CMD ["sh", "-c", "echo '[Beeline] Frontend ready at http://localhost:3000' && exec nginx -g 'daemon off;' 2>/dev/null"] diff --git a/honeycomb/nginx.conf b/honeycomb/nginx.conf index 4ed4e595..ef067b7a 100644 --- a/honeycomb/nginx.conf +++ b/honeycomb/nginx.conf @@ -1,3 +1,7 @@ +# Suppress noisy logs - only log errors +error_log /var/log/nginx/error.log error; +access_log off; + server { listen 3000; server_name localhost;