Comments (6)
This is what I've come up with so far as part of the container startup to build the proper config files for Espo.
<?php
$config = include("/path/to/templates/config.php");
$config['siteUrl'] = getenv('ESPOCRM_SITE_URL');
file_put_contents("/var/www/html/data/config.php", "<?php\nreturn " . var_export($config, true) . ";\n");
$configInternal = include("/path/to/templates/config-internal.php");
$configInternal['database']['host'] = getenv('ESPOCRM_DATABASE_HOST');
$configInternal['database']['dbname'] = getenv('ESPOCRM_DATABASE_NAME');
$configInternal['database']['user'] = getenv('ESPOCRM_DATABASE_USER');
$configInternal['database']['password'] = getenv('ESPOCRM_DATABASE_PASSWORD');
$configInternal['passwordSalt'] = getenv('ESPOCRM_PASSWORD_SALT');
$configInternal['cryptKey'] = getenv('ESPOCRM_CRYPT_KEY');
$configInternal['hashSecretKey'] = getenv('ESPOCRM_HASH_SECRET_KEY');
file_put_contents("/var/www/html/data/config-internal.php", "<?php\nreturn " . var_export($configInternal, true) . ";\n");
from espocrm-docker.
Hello,
You can define these parameters while creating the container. Please see https://hub.docker.com/r/espocrm/espocrm under Installation Environments
section.
Also, you can change any config option (string, integer, boolean) by using Config Environments
. See https://hub.docker.com/r/espocrm/espocrm.
from espocrm-docker.
I found that using the method you mention resulted in Espo doing an install during container start. The install process generated new cryptKey, passwordSalt and hashSecretKey values. These values need to remain consistent between deploys to the same environment/multiple nodes in the same cluster.
from espocrm-docker.
In this case, you have to create a data/config.php
file before starting the installation process in the way you described above.
from espocrm-docker.
In this case, you have to create a
data/config.php
file before starting the installation process in the way you described above.
Hello,
You can define these parameters while creating the container. Please see https://hub.docker.com/r/espocrm/espocrm under
Installation Environments
section. Also, you can change any config option (string, integer, boolean) by usingConfig Environments
. See https://hub.docker.com/r/espocrm/espocrm.
Version 7 also uses config-internal.php. How can i set parameters in docker-compose for that file.
Thanks
from espocrm-docker.
This is automatically defined on the EspoCRM side. All items in the systemItems
will be added to the config-internal.php
.
If you need some extra parameters to be added to the config-internal.php
, you have to add to config.php
the code:
'systemItems' => [
'__APPEND__',
'YOUR_PARAMETER'
],
from espocrm-docker.
Related Issues (20)
- Scheduled Jobs don't work after update HOT 3
- LDAP Authentication issues HOT 3
- Can't enable "Use Cache" HOT 3
- Traefik integration HOT 16
- espocrm-daemon exited with code 0 HOT 3
- database port HOT 2
- Deployment via Kubernetes HOT 1
- Some PDF's can't be opened HOT 3
- Apple Silicon Support HOT 1
- Bug: Jobs Run in Parallel not compatible with 7.3.2 HOT 2
- Websocket zmq not working with reverse proxy HOT 12
- Helm chart for kubernetes deployment
- How does 'charset' end up NULL in data/config-internal.php by default? HOT 1
- Set debug logging through Config Environments HOT 1
- Missing releases for 8.0.3 and 8.0.4 HOT 1
- SMTP configuration in docker-compose environment ? HOT 6
- PostgreSQL support broken HOT 1
- Missing releases HOT 1
- LDAP authentication HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espocrm-docker.