# Disclaimer This Project is a project for me to learn included technologies/langauges. Its not ment for production environments. # PyBlog ## a blog written in python with flask PyBlog is a blogging system written in python. Its one of my first Docker using projects ## Requirements ### Docker Docker is used to build a container for the Server ### Make(optional) Make is used to make building of Docker images easier ### Docker Compose docker-compose can be used to start and stop the application easier ## Installation ### Git you can clone this repository with `git clone https://gitlab.sokoll.com/moritz/blog.git` ### Docker in the future the docker images might be on a registry like docker hub ## Running ### Docker compose you can run `docker-compose up -d` to run this application in detached mode and you can stop it with `docker-compose down` ### Docker As soon as a database server (`mariadb`) is involved, you might need to setup a network between the containers, due to docker-compose automatically routing the connection to the services name #### with Make If you can use make do `make docker-run-main` to run the main application in detached mode and do `make docker-run-api` to run the api #### without Make you can also start these containers directly from docker: `docker run --name your_name -p5000:5000 -d pyblog:latest` #### Ports the api exposes port 5001 and the main application exposes port 5000