up
This commit is contained in:
@@ -4,11 +4,11 @@
|
|||||||
APP_URL=https://admin.u-site.app
|
APP_URL=https://admin.u-site.app
|
||||||
|
|
||||||
DB_DRIVER=postgres
|
DB_DRIVER=postgres
|
||||||
DB_HOST=46.202.93.92
|
DB_HOST=t2yq39od6o6cgxaakw6wbu9v
|
||||||
DB_PORT=5432
|
DB_PORT=5432
|
||||||
DB_USER=postgres
|
DB_USER=usite
|
||||||
DB_PASS=0HZ3rRdsJ7paBAHEg07jtJU0RDuDKLthfXZnpsJZWD3ocMWzTQKFbPKlJUvFQFEA
|
DB_PASS=DXPc2nzKWurNThEaWffGFuy47b65CWV4O9X75td2uOGj3kFLimOgLppWplYbx5Fu
|
||||||
DB_NAME=postgres
|
DB_NAME=usite
|
||||||
|
|
||||||
|
|
||||||
MAIL_HOST=smtp.hostinger.com
|
MAIL_HOST=smtp.hostinger.com
|
||||||
|
|||||||
+2
-2
@@ -46,8 +46,8 @@ COPY --from=builder /app/public ./public
|
|||||||
COPY --from=builder /app/resources/views ./resources/views
|
COPY --from=builder /app/resources/views ./resources/views
|
||||||
COPY --from=builder /app/assets ./assets
|
COPY --from=builder /app/assets ./assets
|
||||||
|
|
||||||
# config.yml se monta como volumen o se inyecta vía env en Coolify
|
# Copiar configuración real (las credenciales se sobreescriben con variables de entorno)
|
||||||
COPY config.sample.yml ./config.yml
|
COPY config.yml ./config.yml
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -9,9 +9,9 @@ database:
|
|||||||
port: 3306
|
port: 3306
|
||||||
postgres: &postgres
|
postgres: &postgres
|
||||||
driver: postgres
|
driver: postgres
|
||||||
host: 46.202.93.92
|
host: t2yq39od6o6cgxaakw6wbu9v
|
||||||
username: postgres
|
username: postgres
|
||||||
password: 0HZ3rRdsJ7paBAHEg07jtJU0RDuDKLthfXZnpsJZWD3ocMWzTQKFbPKlJUvFQFEA
|
password: DXPc2nzKWurNThEaWffGFuy47b65CWV4O9X75td2uOGj3kFLimOgLppWplYbx5Fu
|
||||||
port: 5432
|
port: 5432
|
||||||
db_name: postgres
|
db_name: postgres
|
||||||
sqlserver: &sqlserver
|
sqlserver: &sqlserver
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ type DatabaseDriver struct {
|
|||||||
type DatabaseConfig struct {
|
type DatabaseConfig struct {
|
||||||
*gorm.DB
|
*gorm.DB
|
||||||
Drivers map[string]DatabaseDriver `yaml:"drivers"`
|
Drivers map[string]DatabaseDriver `yaml:"drivers"`
|
||||||
Default DatabaseDriver `yaml:"default" env:"DEFAULT_DB_DRIVER"`
|
Default DatabaseDriver `yaml:"default"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *DatabaseConfig) Setup() error {
|
func (d *DatabaseConfig) Setup() error {
|
||||||
|
|||||||
Reference in New Issue
Block a user