mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Added config
This commit is contained in:
parent
1f46910cd6
commit
8dc3730b4c
3 changed files with 27 additions and 0 deletions
|
@ -9,3 +9,5 @@ services:
|
|||
ports:
|
||||
- 2368:2368
|
||||
- 4200:4200
|
||||
environment:
|
||||
- NODE_ENV=dockerdev
|
21
ghost/core/core/shared/config/env/config.dockerdev.json
vendored
Normal file
21
ghost/core/core/shared/config/env/config.dockerdev.json
vendored
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue