From 16525b1b2fb9154252a6cee802f6ef87d5c3f378 Mon Sep 17 00:00:00 2001 From: Yan Kasabutski Date: Thu, 27 Mar 2025 09:37:19 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20z1/README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- z1/README.md | 64 +++++++++++++--------------------------------------- 1 file changed, 16 insertions(+), 48 deletions(-) diff --git a/z1/README.md b/z1/README.md index 68ab97a..13421fe 100644 --- a/z1/README.md +++ b/z1/README.md @@ -1,60 +1,28 @@ -# Docker Web Application -## Requirements +# Webová aplikácia Docker + +## Požiadavky - Docker - Docker Compose -## Description -This web application consists of two services: -1. A **web service** using Nginx to serve static HTML files. -2. A **database service** using MySQL, which persists its data in a Docker volume. +## Popis +Táto aplikácia je tvorená dvoma službami: +1. **Webová služba** využíva Nginx na podávanie statických HTML súborov. +2. **Databázová služba** využíva MySQL, ktorá uchováva svoje údaje v Docker zväzku. -## Docker Volumes and Networks -- **Volume**: `db_data` - used to persist MySQL data. -- **Network**: `app-network` - internal network for the services to communicate. +## Zväzky a siete Docker +- **Zväzok**: `db_data` - pre uchovávanie údajov MySQL. +- **Sieť**: `app-network` - interná sieť pre komunikáciu medzi službami. -## Configuration -- **Nginx**: Serves static HTML files from the `/html` directory. -- **MySQL**: Configured with `MYSQL_ROOT_PASSWORD` and a default database `mydb`. +## Konfigurácia +- **Nginx**: Poskytuje statické HTML súbory z adresára `/html`. +- **MySQL**: Nastavený s `MYSQL_ROOT_PASSWORD` a predvolenou databázou `mydb`. -## How to Use +## Ako používať -### Preparing the app -Run the following command to prepare the application: +### Príprava aplikácie +Pre prípravu aplikácie spustite príkaz: ```bash ./prepare-app.sh -``` - -### Starting the app -To start the app, run: -```bash -./start-app.sh -``` - -The app will be available at `http://localhost:5000`. - -### Stopping the app -To stop the app, run: -```bash -./stop-app.sh -``` - -### Removing the app -To remove all resources related to the app, run: -```bash -./remove-app.sh -``` - -## Example usage - -```bash -# Prepare the app -./prepare-app.sh -Preparing app... - -# Start the app -./start-app.sh -Running app ... -The app is available at http://localhost:5000 # Stop the app ./stop-app.sh