playground-go
required environment variables
set the following environment variables for service runtime
| env var name | value type |
|---|---|
| PORT_NUMBER | string |
how to debug the app
$ cd playground-go/; export PORT_NUMBER=80; go run main.go
how to build the application
1. using makefile
we need to build the image first:
$ make build-builder && make build-service
set the port number for container and host to be bound and exposed.
$ export PORT_NUMBER=80
run the application container.
$ make run-service
2. docker compose
$ docker-compose up --build