Build my own LAMP based on ubuntu

Hello,

I’m looking for to build my own docker based on ubuntu with apache2, php and sqlite. I would like to create this by myself, because, my website don’t need a multiple container, 1 with php and apache and a other for mysql (3 php pages and a little database) I use the docker-compose for my other docker.

To beginning, I run a ubuntu docker and install and configure all my package. After that, I lauched a docker commit and include my docker image and docker information in my docker-compose.yaml with this line :

  lamp:
     image: image_perso
     ports:
       - "8134:80"

But, when I launch my docker-compose up, my status docker stay on restarting but I don’t understand why. Could you help me ?

Thank you

,