Open link in a new tab

Content

Expand project menu

cant map to dns using traefik

Hi,

I have installed open project docker compose version from here:

https://www.openproject.org/docs/installation-and-operations/installation/docker-compose/

I'm using traefik for all our docker to map to dns. So I added following to docker compose:

    deploy:

      replicas: 1

      restart_policy:

        condition: on-failure

      placement:

        constraints:

          - node.labels.node1==true

      resources:

        limits:

          cpus: '0.40'

          memory: 16G

        reservations:

          cpus: '0.20'

          memory: 2G

      labels:

        - traefik.enable=true

        - traefik.docker.network=openproject_public

        - traefik.http.routers.openproject.rule=Host(`projectmanagement.company.com`)

        - traefik.http.routers.openproject.entrypoints=websecure

        - traefik.http.routers.openproject.tls=true

        - traefik.http.services.openproject.loadbalancer.server.port=80  

        - traefik.http.routers.openproject.service=openproject

I tried adding this in caddyfile proxy with port mapped tp 80, also tried in web container with port mapped directly with 9877.

But none can map the dns: projectmanagement.company.com.

I exposed the port and I can access the container using the port. Only that I cannot access it using the DNS.

These are env variables

APP_HOST=web
OPENPROJECT_HTTPS=true
OPENPROJECT_HOST__NAME=projectmanagement.company.com
PORT=
OPENPROJECT_RAILS__RELATIVE__URL__ROOT=
IMAP_ENABLED=false
DATABASE_URL=postgres://postgres:password@db/openproject?pool=20&encoding=unicode&reconnect=true
RAILS_MIN_THREADS=4
RAILS_MAX_THREADS=16
PGDATA="/node1/openproject/data"
OPDATA="/node1/openproject/assets"
TAG=16-slim


All our containers are running successfully in traefik and I can find traefik router and services are also working fine. Not sure how can I debug this issue as I need to access open project via a DNS.

Message actions

ANy update on this?