mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
dockerize the whole thing
This commit is contained in:
3
README.md
Normal file
3
README.md
Normal 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
3
client/Dockerfile
Normal 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
4
client/api.conf
Normal 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
12
docker-compose.yml
Normal 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
4
server/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM mhart/alpine-node:7.6
|
||||||
|
ADD . /code
|
||||||
|
WORKDIR /code
|
||||||
|
CMD ["node", "index.js"]
|
||||||
Reference in New Issue
Block a user