Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

independent wkhtmltopdf #330

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
4 changes: 4 additions & 0 deletions common.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ services:
PGUSER: &dbuser "{{ postgres_username }}"
PROXY_MODE: "{% if odoo_proxy %}true{% else %}false{% endif %}"
LIST_DB: "{{ odoo_listdb | tojson }}"
KWKHTMLTOPDF_SERVER_URL: "http://wkhtmltopdf:8080"
{%- if smtp_canonical_default %}
hostname: "{{ smtp_canonical_default }}"
{%- endif %}
Expand Down Expand Up @@ -112,3 +113,6 @@ services:
- backup_cache:/root:z
- filestore:/mnt/backup/src/odoo:z
{%- endif %}

wkhtmltopdf:
image: acsone/kwkhtmltopdf
6 changes: 6 additions & 0 deletions devel.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ services:
# HACK https://github.com/Kozea/wdb/issues/136
init: true

wkhtmltopdf:
networks: *public
extends:
file: common.yaml
service: wkhtmltopdf

# Whitelist outgoing traffic for tests, reports, etc.
{%- for host in whitelisted_hosts %}
proxy_{{ host|replace(".", "_") }}:
Expand Down
6 changes: 6 additions & 0 deletions prod.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ services:
{%- endif %}
{%- endif %}

wkhtmltopdf:
extends:
file: common.yaml
service: wkhtmltopdf
restart: unless-stopped

networks:
default:
driver_opts:
Expand Down