Taken from English translation of https://www.key-p.com/blog/staff/archives/106755
.
├── docker-compose.yml
├── docker-entrypoint-initdb.d
│ └── db_setup.sql
├── docker-file
│ └── web
│ ├── Dockerfile
│ └── php.ini
├── README.md
└── volumes
└── web
└── html
├── index.php
├── page_bottom.html
└── page_top.html
6 directories, 8 files
docker-compose.yml
: YAML file to configure together the PHP-Apache container and a PostgreSQL containerdb_setup.sql
: the files in thedocker-entrypoint-initdb.d
directory are those that are first run when the PostgreSQL database is initializedDockerfile
: this file contains the base image creation for the LAPP stackphp.ini
: this file contains the initialization for PHPindex.php
: this file is our main php script for querying the PostgreSQL database and displaying the contents of the associatespage_top.html
andpage_bottom.html
filespage_bottom.html
: this file contains the bottom part of the web page to display, after the Bootstrap 4 cards generated with data from a PostgreSQL query in theindex.php
scriptpage_top.html
: this file contains the top part of the web page to display, before the Bootstrap 4 cards generated with data from a PostgreSQL query in theindex.php
script
sudo docker-compose up -d
sudo docker-compose build
sudo docker-compose stop
sudo docker-compose down --volumes