Skip to content

DaoCloud/golang-postgres-web-sample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

golang-postgres-web-sample

This is a web application sample which is dockerized. This app uses postgres as its backend storage.

In the world of Docker, we usually take advantage of link to connect containers.

Therefore, in golang-postgres-web-sample, we use the following environment to connect postgres.

POSTGRES_PORT_5432_TCP_ADDR: postgres host address

POSTGRES_PORT_5432_TCP_PORT: postgres host port

USERNAME: postgres username

PASSWORD: postgres password

INSTANCE_NAME: postgres dbname

About

A golang web app connectting postgresql && both in docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%