Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,14 @@
.editorconfig
.gitignore

node_modules
fresh.pdf

Dockerfile
readme.md
readme.md

POST_HTTPS.sh
POST.sh

ssl.crt
ssl.key
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules
test.pdf
*.pdf
test.png

*.crt
*.key
2 changes: 1 addition & 1 deletion POST.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
curl -d "<h1>Hello World</h1>" \
-H "Content-Type: text/plain" \
-X POST http://localhost:8080/html2pdf --output fresh.pdf
-X POST http://htmlrender.imqs.co.za/render --output fresh.pdf
3 changes: 3 additions & 0 deletions POST_HTTPS.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl -d "<h1>Hello World</h1>" \
-H "Content-Type: text/plain" \
-X POST https://htmlrender.imqs.co.za/render --output fresh.pdf
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
version: "3.7"
services:
html2pdf:
image: index.docker.io/imqs/html2pdf:latest
image: index.docker.io/imqs/htmlrender:latest
ports:
- "80:2078"
- "443:2079"
volumes:
- /opt/htmlrender/ssl:/opt/htmlrender/ssl
entrypoint: npm run start_https
init: true
watchtower:
image: v2tec/watchtower
Expand Down
Loading