Example of a web server created using GO, running from a Docker container
How to Run in Docker Container
From repository firstly have to build the image using the following
docker build -t "cycling-blog" .
Once the image has completed building, this is now ready to run
docker run -d -p 8080:8080 cycling-blog:latest
How to Run in Docker Compose
The docker-compose.yml contains a volume mounted to the local drive to prevent data lost within the database if shutdown. This would required edit if to be used on local machine.
To run the application with database this can be done using docker compose command. The following command build and start the containers in the background