0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added config

This commit is contained in:
Steve Larson 2024-10-09 15:39:12 +01:00
parent 1f46910cd6
commit 8dc3730b4c
3 changed files with 27 additions and 0 deletions

View file

@ -9,3 +9,5 @@ services:
ports:
- 2368:2368
- 4200:4200
environment:
- NODE_ENV=dockerdev

View file

@ -0,0 +1,21 @@
{
"server": {
"host": "0.0.0.0",
"port": 2368
},
"database": {
"client": "mysql",
"connection": {
"host": "ghost-mysql",
"user": "root",
"password": "root",
"database": "ghost"
}
},
"adapters": {
"Redis": {
"host": "ghost-redis",
"port": 6379
}
}
}

View file

@ -28,6 +28,10 @@ function loadNconf(options) {
nconf.argv();
nconf.env({separator: '__', parseValues: true});
if (env === 'dockerdev') {
nconf.file('dockerdev', path.join(baseConfigPath, 'env','config.dockerdev.json'));
}
// Now load various config json files
nconf.file('custom-env', path.join(customConfigPath, 'config.' + env + '.json'));
if (!env.startsWith('testing')) {