ad hoc fix
This commit is contained in:
@@ -31,10 +31,8 @@ func Migrate() error {
|
||||
dbPassword := helper.GetEnv("POSTGRES_PASSWORD", "password")
|
||||
dbTz := helper.GetEnv("TZ", "Europe/Berlin")
|
||||
|
||||
migrations := helper.GetEnv("MIGRATIONS_PATH", "../migrations")
|
||||
|
||||
connStr := fmt.Sprintf("postgres://%s:%s@%s:5432/%s?sslmode=disable&TimeZone=%s", "migrate", dbPassword, dbHost, dbName, dbTz)
|
||||
m, err := migrate.New(fmt.Sprintf("file://%s", migrations), connStr)
|
||||
m, err := migrate.New("file:///migrations", connStr)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ services:
|
||||
- db
|
||||
volumes:
|
||||
- ${LOG_PATH}:/app/logs
|
||||
- ${MIGRATIONS_PATH}:/migrations:ro
|
||||
restart: unless-stopped
|
||||
|
||||
# document-creator:
|
||||
|
||||
Reference in New Issue
Block a user