The template for using LAMP stack with Docker Compose.
- Pull image
docker-compose pull
. - Install
docker-compose build
anddocker-compose up -d
. - Start all container
docker-compose start
. - Stop all container
docker-compose stop
. - Destroy all container
docker-compose down
. - Shell to container
docker exec -it mysql sh
andmysql -u user -p password
.
- apache
- phpfpm
- mysql
DATABASE_NAME=database
DATABASE_HOST=dockerdb
USER=root
PASSWORD=root