- DATABASE_HOST=localhost ( Name of the mariadb service )
- DATABASE_PORT=3306 ( Port of the mariadb service )
- VTIGER_DB_NAME=vtiger ( Name of the vtiger database )
- VTIGER_DB_USERNAME=vtiger ( Username to connect to the vtiger database )
- VTIGER_DB_PASSWORD=password ( Password to connect to the vtiger database )
- ADMIN_USERNAME=admin ( Vtiger admin username )
- ADMIN_PASSWORD=password ( Vtiger admin password )
- ADMIN_EMAIL=[email protected] ( Vtiger admin email )
- TRUSTED_HOST=localhost ( Vtiger trusted domain )
version: '3.1'
services:
vtigercrm:
image: vtigercrm
environment:
- DATABASE_HOST=mariadb
- DATABASE_PORT=3306
- VTIGER_DB_NAME=vtigercrm
- VTIGER_DB_USERNAME=vtigercrm
- VTIGER_DB_PASSWORD=password
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=password
- [email protected]
- TRUSTED_HOST=172.17.0.1:8080
ports:
- 8080:80
networks:
default:
volumes:
- /tmp/vtigercrm:/var/www/vtigercrm/
deploy:
resources:
limits:
memory: 256M
restart_policy:
condition: on-failure
mode: global
mariadb:
image: samirkherraz/mariadb
environment:
- ROOT_PASSWORD=password
- DB_0_NAME=vtigercrm
- DB_0_PASS=password
ports:
- 3306:3306
- 8081:80
volumes:
- mariadb-data:/var/lib/mysql/
- mariadb-config:/etc/mysql/
networks:
default:
deploy:
resources:
limits:
memory: 256M
restart_policy:
condition: on-failure
mode: global
volumes:
mariadb-data:
mariadb-config: