Install Press via Frappe Docker

Hi everyone,

I’m currently working on setting up the Press app inside a Frappe project using frappe_docker.

I’ve successfully created a custom Docker image including Frappe and Press by following the official guide here:
:link: frappe_docker/docs/custom-apps.md at main · frappe/frappe_docker · GitHub

The installation worked fine, and the site was created using the image without issues.

However, I’m now facing a problem during configuration:

When I go to “TLS Certificate” > “Obtain Certificate” in the UI, I get an error saying that Certbot is not found.

Here is the exact error data:

json

{
    "command": "certbot certonly --dns-route53  --logs-dir /home/frappe/.certbot/logs --work-dir /home/frappe/.certbot --config-dir /home/frappe/.certbot --force-renewal --agree-tos --eff-email --email justin@smiling-digital.de --staple-ocsp --key-type rsa --rsa-key-size 2048 --cert-name *.pc.smiling-digital.de --domains *.pc.smiling-digital.de",
    "exception": "[Errno 2] No such file or directory: 'certbot'"
}

:question:My questions:

  1. Has anyone successfully set up Press with frappe_docker including working TLS certificate generation?
  2. Is there a recommended way to include Certbot (with plugin certbot-dns-route53)?
  3. Should Certbot run inside the Frappe Backend container, or externally (e.g. host or separate container)?

Any help, guidance or links to working examples would be greatly appreciated! :pray:

Thanks in advance!
Justin

2 Likes

Hello @JustinH
Welcome to the community. :tada:

Did you try Traefik?

If you add to your docker compose up command; the following override files:
 

 -f overrides/compose.traefik.yaml -f overrides/compose.traefik-ssl.yaml

 
Then you enabled Traefik (a reverse proxy with SSL certificates enabled) that will manage SSL certificates for you including renewals when needed.

:point_right: Make sure you amend the 2 override files as needed for your case especially: dnsChallenge and provider = "route53"

Let us know how it goes.

K

Hello friend, I also want to install press as docker version, but I am not knowing how to use this article(frappe_docker docs custom-apps.md) you mentioned. Can you please show me the docker-compose file contents related to building press? Want to learn only, thank you very much.

@mf1389004071 issue solved?

If you need press, just use the installation method everyone else is using. Even with that there’s struggle.

If you still need it, you’ve to install lot other os packages to support it. “certbot” I see in error. You’re basically on your own. Check the press’ God images.

I had an idea to remove the frappe/agent wiring press does and re-wire it to kubernetes api. Instead I did another minimal frappe app (Manage official or custom frappe-benches on Kubernetes) when I saw press had doctypes ranging from server management, saas management, marketplace and many others that I didn’t need.

1 Like