Official SSL Certificate to docker container

We have installed ERPnext from the GitHub guide for docker installation. We are facing the issue to put the official company wildcard certificate in to the traffic docker container. We don’t need lets encrypt.

proxy:
command:
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.websecure.address=:443
- --certificatesResolvers.main-resolver.acme.httpChallenge=true
- --certificatesResolvers.main-resolver.acme.httpChallenge.entrypoint=web
- --certificatesResolvers.main-resolver.acme.email=test@test.com
- --certificatesResolvers.main-resolver.acme.storage=/letsencrypt/acme.json
image: traefik:2.5
networks:
default: null
ports:
- mode: ingress
protocol: tcp
published: “80”
target: 80
- mode: ingress
protocol: tcp
published: “443”
target: 443
volumes:
- source: cert-data
target: /letsencrypt
type: volume
volume: {}
- bind:
create_host_path: true
read_only: true
source: /var/run/docker.sock
target: /var/run/docker.sock
type: bind

What is the bestway to put the official cert.crt + cert.key in to the config / docker container and disable lets encrypt.

We fixed the issue, with the following steps into the docker-compose.yml and force to rebuild the docker container with these settings. Now we can use our Certificate.

proxy:
command:
- --api.insecure=true
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --providers.file.directory=/data
- --entrypoints.web.address=:80
- --entrypoints.web.http.redirections.entrypoint.to=websecure
- --entrypoints.web.http.redirections.entrypoint.scheme=https
- --entrypoints.websecure.address=:443

volumes:
- /home/erpnext/traefik/dynamic/certs-traefik.yaml:/data/certs-traefik.yaml
- /etc/certs:/etc/certs/

/home/erpnext/traefik/dynamic/certs-traefik.yaml
tls:
certificates:
- certFile: /etc/certs/xxxxxxx.com.crt
keyFile: /etc/certs/xxxxxxx.com.key