| web | ||
| Apache:default.conf.sh | ||
| Apache.conf.sh | ||
| app:db_init.sql | ||
| app:index.php | ||
| docker-compose.yaml | ||
| prepare-app.sh | ||
| README.md | ||
| remove-app.sh | ||
| start-app.sh | ||
| stop-app.sh | ||
| test.php | ||
| z2 | ||
WebApp Docker Deployment
Requirements -
Docker installed
Docker Compose (optional)
Description -
This application consists of a web service and a database service. The web service runs on an Apache server with PHP and connects to a MySQL database.
Networks and Volumes -
my_network: A bridge network for inter-container communication.
mysql_data -
A volume to persist database data.
Container Configuration
apache: Web service running Apache with PHP, exposes port 8080.
mysql -
MySQL database service using the official MySQL image, exposes port 3306.
Instructions
Prepare the application: ./prepare-app.sh
Start the application: ./start-app.sh
Stop the application: ./stop-app.sh
Remove the application: ./remove-app.sh
Accessing the Application
Open a web browser and navigate to http://localhost:8080.