Language Frankfurt, Germany
Deploy Go on Nodion
Nodion recognizes Go by go.mod. The Go buildpack downloads your modules, builds static binaries with the newest Go release and starts your server, while the toolchain stays out of the run image. The app runs in Frankfurt, next to a managed PostgreSQL database if you need one.
- Detected by
go.mod- Start
- The built binary, one per
cmd/<name> - Go
- Always the newest release (1.27.x)
- Region
- EU Central (Frankfurt)
Deploy Go step by step
- Listen on PORT Nodion sets
PORTfor the web process; listen on it on all interfaces. Gin'sr.Run()without an address already usesPORT. With Echo, Fiber or Chi, pass":" + portyourself. main.gopackage main import ( "log" "net/http" "os" ) func main() { port := os.Getenv("PORT") if port == "" { port = "8080" } http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("ok")) }) log.Fatal(http.ListenAndServe(":"+port, nil)) } - One binary per cmd/ folder Without a
cmd/folder, Nodion builds the module root into one binary. Eachcmd/<name>with Go files becomes its own binary instead, and the root package is then not built. The web process runs the only binary, else the one namedserver,api,weborapp, else the first; every other binary becomes a process type of the same name.cmd/server/main.go cmd/worker/main.go cmd/migrate/main.go - Check the build settings Binaries build with
CGO_ENABLED=0and-ldflags "-s -w". If a dependency needs cgo, such asmattn/go-sqlite3, setCGO_ENABLED=1with the Build flag on the Environment tab. A Build variableGOFLAGS_LDFLAGSreplaces the ldflags, so include-s -wthere if you want to keep them. - Create the app In the dashboard, create an application from your GitHub, GitLab, Bitbucket or Gitea repository, pick the branch and the region EU Central. Keep the build strategy on Buildpacks; if the repository has a Dockerfile, the form picks Dockerfile instead.
- Attach PostgreSQL and run migrations Attach a database from the same region on the Environment tab;
DATABASE_URLarrives on the next deploy, and PostgreSQL drivers such as pgx accept it as it is. Your binaries are on thePATHat runtime, so acmd/migratebinary can run as the release step, once per build before the new version starts. Procfilerelease: migrate
Good to know
- Workers without a ProcfileA binary from
cmd/workerbecomes the process typeworker. Add a process namedworkerwithout a port on the Processes tab and leave its command empty; it runs that binary. Name the web binaryserver,api,weborappso the web process does not pick another one. - Always the newest GoThe
goline ingo.modand a.go-versionfile do not select an older toolchain: every build uses the newest Go release Nodion has built. Run your CI against the newest Go as well.
What Nodion runs for you
- Deploys without downtime Push to your branch and Nodion builds a new release. Traffic switches once the new instances answer their health check; a failed release leaves the running one in place. Apps with a local volume restart instead, because the disk belongs to one instance.
- Databases next to the app Managed PostgreSQL, pgvector, MySQL, Valkey and ClickHouse in the same region. Attached databases arrive as
DATABASE_URL,REDIS_URLorCLICKHOUSE_URL. - Previews per pull request Turn on previews and pull requests from your repository get their own app with its own URL and fresh, empty databases, created automatically or by hand. Forks and bot pull requests are skipped.
- Workers, cron jobs and scaling Run workers as extra processes of the same app, schedule jobs on the Cron tab, and scale every process to up to 16 instances.
- Release step With buildpacks, a Procfile
release:line runs with every new build. Dockerfile apps, and redeploys or rollbacks to an earlier image, use a release command set on the app itself, which also takes precedence over the Procfile line. On static sites a release step runs in an image that holds only the built files. - Logs and metrics Build, release and runtime logs plus CPU, memory, disk and network metrics for every instance in the dashboard.
- Domains and HTTPS A default hostname with HTTPS from the first deploy; your own domains get certificates automatically.
Further reading
- Why We Built Our Own Buildpacks on Ubuntu 26.04 Our buildpacks follow the Cloud Native Buildpacks spec, but the stack, the language packs and the runtime versions are ours. Here is why.
- Dockerfile vs Buildpacks: Which One Should You Use? Both turn your code into a container image. What differs is who writes the build steps, and that decides control, maintenance and security updates.
Go on Nodion: questions and answers
Do Gin, Echo, Fiber and Chi work?
Yes. Nodion builds and starts your binary, whatever framework it uses; the server only has to listen on PORT. With Gin in go.sum, Nodion also sets GIN_MODE=release.
Which Go version does Nodion use?
Always the newest Go release Nodion has built, currently 1.27.x. Older Go lines are not used for builds, even if go.mod names one.
Do I need a Dockerfile for Go?
No. The Go buildpack compiles your binaries and puts them into the run image without the Go toolchain. If you already have a Dockerfile, Nodion can build that instead.
Where does my Go app run?
In the EU Central region in Frankfurt, Germany. Build, registry, the app and its databases, volumes, buckets, logs and metrics stay in that region, and Nodion's API and control plane are hosted in Germany. Nodion GmbH is based in Stuttgart.
Can I use Go in line with the GDPR?
Nodion provides the basis for it: Nodion GmbH is based in Stuttgart, Germany, in the Frankfurt region the app, its databases and volumes run in Germany, and you conclude the data processing agreement (DPA) under Art. 28 GDPR electronically in the dashboard. Whether your setup complies also depends on how you configure and use the app.
How much does it cost to run Go on Nodion?
An app instance starts at 1 EUR per month. The setup in the cost box costs 2.50 EUR per month: App 1 EUR, PostgreSQL 1.50 EUR. Prices are net and billed per second, and you pick bigger sizes or more instances whenever you need them.
Can I use my own domain for my Go app?
Yes. Every app gets a default hostname with HTTPS. Add your own domain on the app's Domains tab; the TLS certificate is issued and renewed automatically.