fix(db): host environment

This commit is contained in:
cha0s 2022-03-02 04:27:53 -06:00
parent 66846355ee
commit a34ec597e1

View File

@ -6,13 +6,18 @@ export default (flecks) => {
port,
database,
} = flecks.get('@flecks/db/server');
let environment = {};
let environment = {
app: {
host: 'sequelize',
},
};
let image;
let mount;
let ports = {};
switch (dialect) {
case 'mysql': {
environment = {
...environment,
sequelize: {
MYSQL_USER: username,
MYSQL_DATABASE: database,
@ -26,6 +31,7 @@ export default (flecks) => {
}
case 'postgres': {
environment = {
...environment,
sequelize: {
POSTGRES_USER: username,
POSTGRES_DB: database,