This is a docker-compose yml file for xentral server with MySQL and adminer:
- mysql-service:3306 (mysql 5.7.x)
- xentral-service:4000 (xentral 19.2 special thanks to lobaro/xentral-docker)
- adminer:4001 (mysql admin tool latest)
- Install docker
- Install docker-compose
docker-compose up
If you shutdown your docker containers all data stored in the mysql database will be no longer stored. Therefore read "Integrate SQL Backup"
docker-compose down
You have to configure the general setup if you start this the first time. Afterwards you can login and reset your password. A initial sql backup is a good idea.
Each sql file in the sqldump folder will be imported automatically into the mysql after it is started.
To create a new backup you can use:
docker exec erp_mysql-service_1 sh -c 'exec mysqldump --databases xentral -uroot -p"$MYSQL_ROOT_PASSWORD"' > ./sqldump/xentral-backup.sql
After restarting docker-compose (down/up) this sqldump will automatically be imported.
To manually import a sqldump you can use:
docker exec -i erp_mysql-service_1 sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < ./sqldump/xentral-backup.sql