add docker-compose.yml

This commit is contained in:
dhax 2021-09-08 23:49:50 +02:00
parent f7b222b7f3
commit 32abb2ac26
5 changed files with 117 additions and 58 deletions

View file

@ -15,7 +15,7 @@ func DBConn() (*pg.DB, error) {
viper.SetDefault("db_addr", "localhost:5432")
viper.SetDefault("db_user", "postgres")
viper.SetDefault("db_password", "postgres")
viper.SetDefault("db_database", "gobase")
viper.SetDefault("db_database", "postgres")
db := pg.Connect(&pg.Options{
Network: viper.GetString("db_network"),