This simple repository is here to demonstrate how you can easily containerize a Go application and deploy its stack using seelf.
The repository is divided into branches representing tutorial steps:
- Base application (main)
- Containerizing the application (containerizing)
- Deploying it on a seelf instance (deploying)
This is a web application which output the number of times it was started. To demonstrate how it's easy to deploy a stack on seelf, it persists its data in a PostgreSQL database.
Considering you got a postgreSQL database running on your local computer with user dbuser
, password dbpass
and a sample
database.
DATABASE_URL=postgres://dbuser:dbpass@localhost:5432/sample?sslmode=disable go run main.go
go build -ldflags="-s -w" -o sample