Sure, here's the README in English:
This step-by-step guide will show you how to quickly run the "Veterinary App" application using Docker Compose. The application will run in a Docker container, along with a PostgreSQL database.
Make sure you have the following tools installed:
-
Getting the Source Code:
Clone this repository to your computer
-
Configuring the Database:
Open the
docker-compose.yml
file and update the environment variables for the database in thedb
section:environment: POSTGRES_DB: mydb POSTGRES_USER: postgres POSTGRES_PASSWORD: 123
You can change the database name, user, and password according to your preferences.
-
Running the Application:
In your terminal, in the main project directory, execute the following command:
docker-compose up
Docker Compose will now pull the images and start two containers:
app
(Java application) anddb
(PostgreSQL). -
Accessing the Application:
Once the build and startup process is complete, your "Veterinary App" application will be accessible at http://localhost:8080.
-
Stopping the Application:
To stop the application, go to the terminal where Docker Compose is running and use the
Ctrl+C
key combination.Alternatively, if you want to completely remove the containers, type:
docker-compose down
You should now be able to run the "Veterinary App" application in a Docker container using Docker Compose. You can edit the application code or container configurations to tailor it to your needs.
Note: This guide assumes you have basic knowledge of using the terminal and Docker. If you need more information about these tools, we recommend referring to their official documentation.