Sign inSign up

omarmokhtar99/go-docker-app

By omarmokhtar99

•Updated over 3 years ago

Containerized server written in GOLang

Image
0

142

omarmokhtar99/go-docker-app repository overview

[Source Code]⁠

⁠Run Example:

docker run -e MYSQL_HOST=localhost -e MYSQL_PASS=12345 -e MYSQL_PORT=3306 -e MYSQL_USER=omar omarmokhtar99/go-docker-app

⁠Description:

This program is very simple, it connects to a MySQL database based on the following env vars:

  • MYSQL_HOST
  • MYSQL_USER
  • MYSQL_PASS
  • MYSQL_PORT

And exposes itself on port 9090:

  • On /healthcheck it returns an OK message,
  • On GET it returns all recorded rows.
  • On POST it creates a new row.
  • On PATCH it updates the creation date of the row with the same ID as the one specified in query parameter id

Tag summary

Content type

Image

Digest

sha256:3138ea9ce…

Size

6.9 MB

Last updated

over 3 years ago

docker pull omarmokhtar99/go-docker-app