Go to file
2025-04-15 16:36:58 +00:00
web Update web/index.html 2025-03-26 10:16:04 +00:00
Apache:default.conf.sh Upload files to "/" 2025-03-26 10:20:03 +00:00
Apache.conf.sh Upload files to "/" 2025-03-26 10:20:03 +00:00
app:db_init.sql Upload files to "/" 2025-03-26 10:20:03 +00:00
app:index.php Upload files to "/" 2025-03-26 10:20:03 +00:00
docker-compose.yaml Update docker-compose.yaml 2025-03-26 10:15:10 +00:00
prepare-app.sh assiangment 1 2025-03-19 12:22:46 +01:00
README.md Update README.md 2025-04-02 07:15:09 +00:00
remove-app.sh assiangment 1 2025-03-19 12:22:46 +01:00
start-app.sh assiangment 1 2025-03-19 12:22:46 +01:00
stop-app.sh assiangment 1 2025-03-19 12:22:46 +01:00
test.php Upload files to "/" 2025-03-26 10:20:03 +00:00

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.