dockerize the whole thing

This commit is contained in:
Thomas Ruoff
2017-02-23 21:43:48 +01:00
parent db2c45342f
commit f270068388
5 changed files with 26 additions and 0 deletions

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# PDFer
Write a letter in the browser, let the backend generate a PDF out of it.

3
client/Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM nginx:alpine
COPY ./build /usr/share/nginx/html
COPY ./api.conf /etc/nginx/conf.d/

4
client/api.conf Normal file
View File

@@ -0,0 +1,4 @@
location /api/ {
proxy_pass http://127.0.0.1:5000;
proxy_set_header Host $host;
}

12
docker-compose.yml Normal file
View File

@@ -0,0 +1,12 @@
version: '2'
services:
backend:
build: ./server
ports:
- "5000"
web:
build: ./client
links:
- backend
ports:
- "80:9999"

4
server/Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM mhart/alpine-node:7.6
ADD . /code
WORKDIR /code
CMD ["node", "index.js"]