Implementation of an http server in C++, and further containerization via Docker
Install docker on the machine and configure it.
- Clone repo to machine
git clone https://github.com/ArturRomanchenko/server.git
-
Go to the repository folder
cd server/
-
Build the docker image
docker-compose build
- Start the server
docker-compose up
- Closing the server in the terminal where it is running.
Ctrl + C
- Open a second terminal window in the project directory where you cloned the repository
docker-compose down
When you start the docker container docker-compose up
, go to your favorite browser and write in the search bar: http://localhost:8080/
and press to F5