golangwebpage

command module
v0.0.0-...-ba1386b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

golangwebpage

     GitHub pull-requests GitHub pull-requests closed GitHub last-commit GitHub contributors

Actions

Pull Request Authentication Check Terraform Plan infra/EKS localstack-action-example Go Test

Release Go project Continuous Deployment CodeQL Open Issues Pull Request Checker

Prerequisite


     GO Docker


Overview


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

docker-compose up --build -d

To stop the application with and database with

docker-compose down

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL