Docker - Traefik - Returning error 403

Situation
traefik proxy accessing app by ip address on port 443 with ssl check waived

OpenEMR Version
I’m using OpenEMR version flex

version: '3.1'
services:
  openemr:
   restart: always
   image: openemr/openemr:flex
   labels:
    - "traefik.enable=true"
    - "traefik.docker.network=openemr"
    - "traefik.http.routers.openemr.rule=Host(`somedomain.blah.com`)"
    - "traefik.http.routers.openemr.tls.certresolver=letsencrypt"
    - "traefik.http.routers.openemr.entrypoints=websecure"
    - "traefik.http.services.openemr.loadBalancer.server.port=443"
    - "traefik.http.services.openemr.loadBalancer.server.scheme=https"
    - "traefik.protocol=https"
   volumes:
    - .:/openemr:ro
    - .:/var/www/localhost/htdocs/openemr:rw
    - publicvolume:/var/www/localhost/htdocs/openemr/public:rw
    - sitesvolume:/var/www/localhost/htdocs/openemr/sites/default:rw
    - nodemodules:/var/www/localhost/htdocs/openemr/node_modules:rw
    - vendordir:/var/www/localhost/htdocs/openemr/vendor:rw
    - ccdamodule:/var/www/localhost/htdocs/openemr/ccdaservice:rw
    - logvolume:/var/log
   environment:
    ServerName: somedomainhere.tld
    MYSQL_HOST: db:3306
    MYSQL_ROOT_PASS:
    MYSQL_DATABASE: openemr
    MYSQL_USER: usernamegoeshere
    MYSQL_PASS: someoldpasswordhere
    OE_USER: admin
    OE_PASS: somepasswordhereas
   networks:
     openemr:
     db-pma_backenddb:

volumes:
  databasevolume: {}
  publicvolume: {}
  sitesvolume: {}
  nodemodules: {}
  vendordir: {}
  ccdamodule: {}
  logvolume: {}

networks:
    openemr:
        external: true
    db-pma_backenddb:

Browser:
chrome

Operating System
w10 pro

Logs
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using xxx.xxx.xxx.xxx. Set the ‘ServerName’ directive globally to suppress this message

Did you check the logs? Was there anything pertinent in them? Paste them here (surround with three backticks (```) for readability

Hi Michel, welcome. I’m not sure I understand what the question is/what you’re trying to accomplish. Are you wanting to access openEMR via your browser, the API, etc.?

For the logs you included, “AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using xxx.xxx.xxx.xxx. Set the ‘ServerName’ directive globally to suppress this message” shouldn’t really matter. It’s more of an FYI than an error. If you use localhost instead of an IP address in the address bar it should take care of that for you.

Hello Rachel,

im looking to access the front web application thats runs on 80/443.

i’m running my docker container on its own network then that network connects to my reverse proxy and my openerm has a label informing the proxy whats its domain is.

Maybe try scanning for it. I use a tool called fing.

This youtube video might be helpful, you can probably skip to around minute 11.

I believe there’s a way to tell your OpenEMR installation what it’s host name is. I thought it was under administration -> globals -> connectors but it looks like it moved in version 5.0.2.

Hope this helps,
-Rachel