- Docker
- Docker compose
You can simply run the installer script and follow the on-screen instructions:
./installThis will guide you through all necessary configuration and setup steps interactively.
-
Clone the repository:
git clone https://github.com/netivism/neticrm-selfhost cd neticrm-selfhost -
Copy the example environment file and configure it:
cp example.env .env
-
Edit the
.envfile to set your own environment variables:nano .env
Make sure to update the
MYSQL_ROOT_PASSWORD,MYSQL_DATABASE,MYSQL_USER, andMYSQL_PASSWORDwith your own values. Also, changeADMIN_LOGIN_USERandADMIN_LOGIN_PASSWORDto prevent others from logging in as the administrator.- Start the Docker containers:
docker compose up -d
-
Access the application: After a while of installation. Open your web browser and navigate to
http://localhost:8080(or the port you configured in the.envfile). -
Login to the system: There are two ways to get login user and password:
- Use
ADMIN_LOGIN_USERandADMIN_LOGIN_PASSWORDin.envfile to login. - Generate a one-time login link using the following command:
docker exec -it neticrm-php bash -c 'drush -l $DOMAIN uli'
- Use
-
Follow the on-screen instructions to complete the setup.
For production environments, it's recommended to use SSL. This repository includes a docker-compose-ssl.yaml configuration that uses Caddy as a reverse proxy to handle SSL automatically.
-
Configure your Caddyfile:
Rename or copy the example configuration file:
cp data/example.Caddyfile data/Caddyfile # Edit the Caddyfile with your domain and email nano data/CaddyfileExample Caddyfile content:
{ email [email protected] } your.domain.name { reverse_proxy neticrm-nginx:80 }Replace
[email protected]with your email address andyour.domain.namewith your actual domain. -
Start the SSL-enabled stack:
docker compose -f docker-compose-ssl.yaml up -d
-
Access your site: Your site should now be accessible at
https://your.domain.namewith a valid SSL certificate automatically obtained by Caddy.
To stop the running containers, use:
docker compose down- View logs:
docker compose logs -f
- Restart services:
docker compose restart
For more detailed information, refer to the official documentation or contact support.