File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
packages/server/src/utils/databases Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const buildMariadb = async (mariadb: MariadbNested) => {
3131 mounts,
3232 } = mariadb ;
3333
34- const defaultMariadbEnv = `MARIADB_DATABASE=${ databaseName } \nMARIADB_USER=${ databaseUser } \nMARIADB_PASSWORD=${ databasePassword } \nMARIADB_ROOT_PASSWORD=${ databaseRootPassword } ${
34+ const defaultMariadbEnv = `MARIADB_DATABASE=" ${ databaseName } " \nMARIADB_USER=" ${ databaseUser } " \nMARIADB_PASSWORD=" ${ databasePassword } " \nMARIADB_ROOT_PASSWORD=" ${ databaseRootPassword } " ${
3535 env ? `\n${ env } ` : ""
3636 } `;
3737 const resources = calculateResources ( {
Original file line number Diff line number Diff line change 7777
7878${ command ?? "wait $MONGOD_PID" } `;
7979
80- const defaultMongoEnv = `MONGO_INITDB_ROOT_USERNAME=${ databaseUser } \nMONGO_INITDB_ROOT_PASSWORD=${ databasePassword } ${ replicaSets ? "\nMONGO_INITDB_DATABASE=admin" : "" } ${
80+ const defaultMongoEnv = `MONGO_INITDB_ROOT_USERNAME=" ${ databaseUser } " \nMONGO_INITDB_ROOT_PASSWORD=" ${ databasePassword } " ${ replicaSets ? "\nMONGO_INITDB_DATABASE=admin" : "" } ${
8181 env ? `\n${ env } ` : ""
8282 } `;
8383
Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ export const buildMysql = async (mysql: MysqlNested) => {
3434
3535 const defaultMysqlEnv =
3636 databaseUser !== "root"
37- ? `MYSQL_USER=${ databaseUser } \nMYSQL_DATABASE=${ databaseName } \nMYSQL_PASSWORD=${ databasePassword } \nMYSQL_ROOT_PASSWORD=${ databaseRootPassword } ${
37+ ? `MYSQL_USER=" ${ databaseUser } " \nMYSQL_DATABASE=" ${ databaseName } " \nMYSQL_PASSWORD=" ${ databasePassword } " \nMYSQL_ROOT_PASSWORD=" ${ databaseRootPassword } " ${
3838 env ? `\n${ env } ` : ""
3939 } `
40- : `MYSQL_DATABASE=${ databaseName } \nMYSQL_ROOT_PASSWORD=${ databaseRootPassword } ${
40+ : `MYSQL_DATABASE=" ${ databaseName } " \nMYSQL_ROOT_PASSWORD=" ${ databaseRootPassword } " ${
4141 env ? `\n${ env } ` : ""
4242 } `;
4343 const resources = calculateResources ( {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const buildPostgres = async (postgres: PostgresNested) => {
3030 mounts,
3131 } = postgres ;
3232
33- const defaultPostgresEnv = `POSTGRES_DB=${ databaseName } \nPOSTGRES_USER=${ databaseUser } \nPOSTGRES_PASSWORD=${ databasePassword } ${
33+ const defaultPostgresEnv = `POSTGRES_DB=" ${ databaseName } " \nPOSTGRES_USER=" ${ databaseUser } " \nPOSTGRES_PASSWORD=" ${ databasePassword } " ${
3434 env ? `\n${ env } ` : ""
3535 } `;
3636 const resources = calculateResources ( {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const buildRedis = async (redis: RedisNested) => {
2828 mounts,
2929 } = redis ;
3030
31- const defaultRedisEnv = `REDIS_PASSWORD=${ databasePassword } ${
31+ const defaultRedisEnv = `REDIS_PASSWORD=" ${ databasePassword } " ${
3232 env ? `\n${ env } ` : ""
3333 } `;
3434 const resources = calculateResources ( {
You can’t perform that action at this time.
0 commit comments