rename db
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:1.22
|
FROM golang:1.24
|
||||||
|
|
||||||
WORKDIR /backend
|
WORKDIR /backend
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func connectToPostgreSQL() (*gorm.DB, error) {
|
func connectToPostgreSQL() (*gorm.DB, error) {
|
||||||
dsn := "user=postgres password=password dbname=simplebackend host=localhost port=5432 sslmode=disable"
|
dsn := "user=postgres password=password dbname=db host=localhost port=5432 sslmode=disable"
|
||||||
db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
|
db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
@@ -36,6 +36,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: password
|
||||||
POSTGRES_DB: simplebackend
|
POSTGRES_DB: db
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
|
|||||||
Reference in New Issue
Block a user