Skip to content

docker-compose(-next).yml: Improve docker compose recipe#1771

Merged
nuclearcat merged 1 commit intokernelci:mainfrom
nuclearcat:deploy-fixes
Mar 2, 2026
Merged

docker-compose(-next).yml: Improve docker compose recipe#1771
nuclearcat merged 1 commit intokernelci:mainfrom
nuclearcat:deploy-fixes

Conversation

@nuclearcat
Copy link
Copy Markdown
Member

Dont use host mode for networking
Dont expose ports to external, unless necessary
Change to unified .env file
Rename container name to not clash with production Expose dashboard directly, without proxy

docker-compose-next.yml: Dont expose unnecessary ports to world

Comment thread docker-compose-next.yml
Comment on lines +79 to +80
- ${SSL_CHAIN_FILE:-/etc/letsencrypt/live/d.kernelci.org/fullchain.pem}:/etc/nginx/ssl/fullchain.pem
- ${SSL_KEY_FILE:-/etc/letsencrypt/live/d.kernelci.org/privkey.pem}:/etc/nginx/ssl/privkey.pem
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: add a comment about these variables or they'll be undocumented

Comment thread docker-compose-next.yml
Comment on lines -118 to -121
ports:
- target: ${INGESTER_METRICS_PORT:-8002}
published: ${INGESTER_METRICS_PORT:-8002}
protocol: tcp
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just to confirm: this, backend's port 8001 and pending_aggregations_processor's port 8003 (which is not here, seems like it needs rebasing) are the ports for the prometheus/grafana services, will they still work on production?

Comment thread docker-compose.yml
Comment on lines +140 to +141
# ports:
# - 9000:9000
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: since you are going to comment this service, you could leave the port 80:80 on, so that we can uncomment on development and access the frontend on http://localhost/

@nuclearcat nuclearcat force-pushed the deploy-fixes branch 2 times, most recently from 0e08b2f to 275a3d1 Compare March 2, 2026 18:27
Dont use host mode for networking
Dont expose ports to external, unless necessary
Change to unified .env file
Rename container name to not clash with production
Expose dashboard directly, without proxy

docker-compose-next.yml: Dont expose unnecessary ports to world

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Copy link
Copy Markdown
Collaborator

@MarceloRobert MarceloRobert left a comment

Choose a reason for hiding this comment

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

Works overall. Still need to check if the metrics will continue working but we can fix it on another PR

@nuclearcat nuclearcat added this pull request to the merge queue Mar 2, 2026
Merged via the queue into kernelci:main with commit 1fe4601 Mar 2, 2026
7 checks passed
@nuclearcat nuclearcat deleted the deploy-fixes branch March 2, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants