mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
rename database dsn
This commit is contained in:
parent
a682749db0
commit
6ba60a54a6
|
@ -80,9 +80,9 @@ func main() {
|
||||||
|
|
||||||
switch envFlag {
|
switch envFlag {
|
||||||
case "dev":
|
case "dev":
|
||||||
cfg.db.dsn = os.Getenv("REMOTE_DSN")
|
cfg.db.dsn = os.Getenv("DEV_DSN")
|
||||||
case "prod":
|
case "prod":
|
||||||
cfg.db.dsn = os.Getenv("REMOTE_DSN")
|
cfg.db.dsn = os.Getenv("PROD_DSN")
|
||||||
}
|
}
|
||||||
// Database config variables
|
// Database config variables
|
||||||
cfg.db.maxOpenConns = 25
|
cfg.db.maxOpenConns = 25
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:55432:5432"
|
- "127.0.0.1:55432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/var/lib/postgresql/data"
|
- data:/var/lib/postgresql/data
|
||||||
nourybot:
|
nourybot:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
|
Loading…
Reference in a new issue