commit 142e11729a5e7534c4b385935e8758afd3d07ee5 Author: Joakim Hulthe Date: Thu Jan 25 20:40:29 2018 +0100 Initial Commit Add docker-based dev-environment diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..be9b380 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx +COPY . /usr/share/nginx/html +EXPOSE 80 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cbc9779 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '2.0' +services: + http-warn: + build: + context: . + dockerfile: Dockerfile + image: http-warn + ports: + - "8080:80" + volumes: + - .:/usr/share/nginx/html diff --git a/index.html b/index.html new file mode 100644 index 0000000..7e758e8 --- /dev/null +++ b/index.html @@ -0,0 +1,7 @@ + + + + +

It's working!

+ + diff --git a/prod.docker-compose.yml b/prod.docker-compose.yml new file mode 100644 index 0000000..0a8428d --- /dev/null +++ b/prod.docker-compose.yml @@ -0,0 +1,9 @@ +version: '2.0' +services: + http-warn: + build: + context: . + dockerfile: Dockerfile + image: http-warn + ports: + - "80:80"