No description
- Shell 100%
| docker-compose.yml | ||
| entrypoint.sh | ||
| init.sql | ||
| README.md | ||
CiviCRM Docker
Local CiviCRM Standalone development environment using Docker.
Quick Start
docker compose up
CiviCRM will be available at http://localhost:8000
Login
- Username:
admin - Password:
civicrm
Fresh Start
To wipe all data and start over:
docker compose down -v
docker compose up
Configuration
Environment variables in docker-compose.yml:
| Variable | Default | Description |
|---|---|---|
CIVICRM_DB_HOST |
mysql |
Database host |
CIVICRM_DB_NAME |
civicrm |
Database name |
CIVICRM_DB_USER |
civicrm |
Database user |
CIVICRM_DB_PASS |
civicrm |
Database password |
CIVICRM_UF_BASEURL |
http://localhost:8000/ |
Public base URL |
CIVICRM_ADMIN_PASS |
civicrm |
Admin user password |
What the Entrypoint Does
On first boot (when no civicrm.settings.php exists), entrypoint.sh:
- Creates required directories (
private/cache,private/tmp) with correct permissions - Runs
cv core:installto initialize the database and generate the settings file - Patches all URLs in the settings file to match
CIVICRM_UF_BASEURL - Sets the admin password from
CIVICRM_ADMIN_PASS