Docker fixes
This commit is contained in:
parent
89f71df00a
commit
084028ab6b
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ services:
|
|||
environment:
|
||||
- POSTGRES_HOST=db
|
||||
- POSTGRES_PORT=5432
|
||||
- POSTGRES_DB=helpapp
|
||||
- POSTGRES_DB=pollo
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- AUTH_SECRET=${AUTH_SECRET}
|
||||
|
|
2
main.go
2
main.go
|
@ -33,7 +33,7 @@ func main() {
|
|||
postgresPassword := os.Getenv("POSTGRES_PASSWORD")
|
||||
postgresDB := os.Getenv("POSTGRES_DB")
|
||||
if postgresHost == "" || postgresPort == "" || postgresUser == "" || postgresPassword == "" || postgresDB == "" {
|
||||
log.Fatal("Darta environment variable is not set.")
|
||||
log.Fatal("DB environment variables not set")
|
||||
}
|
||||
|
||||
portNumber, err := strconv.Atoi(postgresPort)
|
||||
|
|
Loading…
Add table
Reference in a new issue