-
cd database/
sudo docker-compose -f db.yaml up -d
-
untuk remove container
sudo docker-compose -f db.yaml down -v
- Setup Penyesuaian mariadb/mysql
-
edit file /etc/mysql/mariadb.conf.d/50-server.cnf dan sesuaikan baris berikut :
add "innodb-strict-mode=OFF" in [mysqld] section
# These groups are read by MariaDB server. # Use it for options that only the server (but not clients) should see # this is read by the standalone daemon and embedded servers [server] # this is only for the mysqld standalone daemon [mysqld] innodb-strict-mode=OFF <--- add this line # # * Basic Settings #
-
cd apache/
sudo docker-compose up -d
-
untuk remove container
sudo docker-compose down -v
- apache/src/ (for php apps standalone) and src/ (for laravel apps)
sudo docker-compose logs -f <nama_container>
sudo docker exec -it <nama_container> /bin/bash
sudo docker stop <nama_container>
sudo docker exec -it <nama_container> /bin/bash -c "cat /lokasi/name_file.extention"