Tutorial Instalasi Slims Berbasis Docker v1
Tutorial Instalasi Slims Berbasis Docker v1
04
Ref: https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt autoremove
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
sudo curl -L
"https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$
(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
docker-compose --version
cd
mkdir -p .slims
wget -c https://github.com/slims/docker-compose-for-slims/archive/master.zip
unzip master.zip
Oke berikutny menjalankan Docker compose. Ada tiga opsi untuk menjalankannya:
(1) versi Default. Menggunakan Apache web server, Database, and mekanisme session bawaan.
untuk menjalankan servis:
sudo docker-compose -f docker-compose.yaml up -d --remove-orphans
untuk mematikan servis:
sudo docker-compose -f docker-compose.yaml down
(2) Versi Redis: Menggunakan Apache web server, Database, mekanisme session menggunakan Redis.
untuk menjalankan servis:
sudo docker-compose -f docker-compose-redis.yaml up -d --remove-orphans
untuk mematikan servis:
sudo docker-compose -f docker-compose-redis.yaml down
(3) Versi advanced. 3 instance container SLiMS di load balancing dengan haproxy. Mensyaratkan haproxy
diinstall pada Host server. untuk menginstall haproxy:
Oiya jangan lupa agar folder images, files, repository dan config bisa ditulis oleh web server:
sudo chmod -R 777 app/slims/files app/slims/repository app/slims/images app/slims/config
harusnya slims sudah bisa diakses dan langsung masuk ke menu instalasi berbasis web.
Sebelum mulai melakukan instalasi, alangkah baiknya merubah password default root
password MySQL dalam file “db_default.env”. Jangan lupa ya.