We are planning to run EspoCRM using Docker. We have already set up a test environment and it works as expected.
Sample
Now the question is how to perform future updates of EspoCRM. Especially the configuration.
How do you guys do that? From my point of view there are two strategies.
Store the complete configuration using "enviroment".
E.g. ESPOCRM_CONFIG_EXPORT_DISABLED : false
Has however the crucial disadvantage that here no arrays are possible. So you can not map the complete configuration.
Or
Save the "config.php" externally and map the file additionally into the container. But this has the disadvantage that changes to the structure of "config.php" will not be taken into account during an update.
What do you think? Maybe a third idea?
Best regards
Marco
Sample
Code:
espocrm: image: espocrm/espocrm container_name: espocrm environment: ESPOCRM_DATABASE_HOST: mysql ESPOCRM_DATABASE_USER: espocrm ESPOCRM_DATABASE_PASSWORD: database_password ESPOCRM_ADMIN_USERNAME: admin ESPOCRM_ADMIN_PASSWORD: password ESPOCRM_SITE_URL: "http://localhost:8080" volumes: - espocrm:/var/www/html restart: always ports: - 8080:80
How do you guys do that? From my point of view there are two strategies.
Store the complete configuration using "enviroment".
E.g. ESPOCRM_CONFIG_EXPORT_DISABLED : false
Has however the crucial disadvantage that here no arrays are possible. So you can not map the complete configuration.
Or
Save the "config.php" externally and map the file additionally into the container. But this has the disadvantage that changes to the structure of "config.php" will not be taken into account during an update.
What do you think? Maybe a third idea?
Best regards
Marco
Comment