zkt25/z1
2025-04-04 15:53:04 +02:00
..
docker-compose.yaml assignment 2 2025-04-04 15:53:04 +02:00
prepare-app.sh assignment 2 2025-04-04 15:53:04 +02:00
README.md assignment 2 2025-04-04 15:53:04 +02:00
remove-app.sh assignment 2 2025-04-04 15:53:04 +02:00
start-app.sh assignment 2 2025-04-04 15:53:04 +02:00
stop-app.sh assignment 2 2025-04-04 15:53:04 +02:00

MyApp Docker Deployment

Requirements

  • Docker installed
  • Docker Compose (optional)

Description

This application consists of a web service and a database service. The web service listens on port 5000 and interacts with the database service.

Networks and Volumes

  • myapp-network: A bridge network for inter-container communication.
  • myapp-data: A volume to persist database data.

Container Configuration

  • myapp-web: Web service built from ./web directory, exposes port 5000.
  • myapp-db: MySQL database service using the official MySQL 5.7 image.

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:5000.