Skip to content

Conversation

@philippschroeppel
Copy link
Collaborator

No description provided.

@philippschroeppel philippschroeppel force-pushed the feature_neb-serve-docker branch from f585f9f to 006586e Compare July 17, 2025 14:58
Comment on lines 15 to 18
RUST_LOG: debug
NEBU_BUCKET_NAME: nebulous
NEBU_BUCKET_REGION: us-east-1
NEBU_ROOT_OWNER: me
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's pass these values through from the CLI and/or the environment.

nebu serve --docker and nebu serve should lead to the same server configuration.

Copy link
Collaborator

Choose a reason for hiding this comment

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

There are probably more values that are missing here, e.g., the auth configuration

@@ -0,0 +1,50 @@
services:
Copy link
Collaborator

Choose a reason for hiding this comment

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

We're missing a redis service

- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=true
- TS_AUTH_KEY=
- TS_EXTRA_ARGS=--login-server https://headscale.nebulous.sh
Copy link
Collaborator

Choose a reason for hiding this comment

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

The login server should be passed through from the CLI and/or the environment.

This entire line can be omitted when running native tailscale, or set to "https://login.tailscale.com", which is what we do in the Helm chart.

hostname: nebulous
environment:
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we sure about that? https://tailscale.com/kb/1112/userspace-networking

According to https://tailscale.com/kb/1282/docker#ts_userspace, this is enabled by default, which might mean that we don't need to do the /dev/net/tun sharing?

In the examples in here that I looked at, they set this to "false" and share /dev/net/tun

environment:
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=true
- TS_AUTH_KEY=
Copy link
Collaborator

Choose a reason for hiding this comment

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

This needs to be passed through from the CLI and/or the environment.


// Set default environment variables for docker mode to prevent validation errors
if std::env::var("NEBU_BUCKET_NAME").is_err() {
std::env::set_var("NEBU_BUCKET_NAME", "nebulous");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove the default value. Everyone needs their own bucket :-)

std::env::set_var("NEBU_BUCKET_NAME", "nebulous");
}
if std::env::var("NEBU_BUCKET_REGION").is_err() {
std::env::set_var("NEBU_BUCKET_REGION", "us-east-1");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove the default value here as well.

@ionicsolutions ionicsolutions changed the title feat: add --docker flag to neb server to start local nebulous instance via docker compose feat: add --docker flag to neb server to start local nebulous instance Jul 21, 2025
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.

3 participants