Docker image and docker-compose sample configuration to bring up a PHP web application product to the Docker Generic Platform (GP).
The product is formed by one container:
- webapp: based on php:7.4.2-apache-buster docker image.
-
Use the
docker-compose.yml.sample
file as your docker-compose configuration file. -
Install assets with
devcontrol assets-install
and copy your web application files in the/data/var/www/html
directory. -
Start with
docker-compose up -d
. -
Open the url http://localhost:8080 in a browser to view your application running.
-
Manage backups of your files:
- Make a backup executing
docker-compose exec webapp backup
. - Find the current backup within the
/var/backups/gp/webapp/
of the container. - Extract the current backup executing
docker cp $(docker-compose ps -q webapp):/var/backups/gp gp
.
- Make a backup executing
-
Stop the platform with
docker-compose stop
.
You can use this docker piece with the Docker Generic Platform project.
None known