diff --git a/README.md b/README.md index 3a6fc4c..f123994 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,15 @@ This site is built with Hugo. Pull requests welc ## Developing Start a dev server at localhost:1313 + +## Docker +```sh + $ docker run -d -p 1313:80 --name hugo-apps -v $(pwd)/public:/usr/local/apache2/htdocs httpd:latest + $ docker ps + $ curl localhost:1313 +``` + +## Docker-compose +```sh + $ docker-compose up -d +``` diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..31ae27c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3" +services: + hugo-apps: + image: httpd:latest + container_name: hugo-apps + working_dir: /usr/local/apache2/htdocs + ports: + - 1313:80 + volumes: + - ./public:/usr/local/apache2/htdocs