Problem when visit the server with no picture

My version of HedgeDoc is: 1.9.6

What I expected to happen:

It should visit the server with picture. And can register, login, create note.

What actually happened:

I try to run the server on NAS with docker-compose. But when i visit the site http://IP:3000 on local network. The web page’s pictures are missing. And Developer console shows errors as below.

My hedgedoc yaml:

version: '3'
services:
  database:
    image: postgres:13.4-alpine
    environment:
      - POSTGRES_USER=hedgedoc
      - POSTGRES_PASSWORD=password
      - POSTGRES_DB=hedgedoc
    volumes:
      - database:/var/lib/postgresql/data
    restart: always
  app:
    # Make sure to use the latest release from https://hedgedoc.org/latest-release
    image: quay.io/hedgedoc/hedgedoc:1.9.6
    environment:
      - CMD_DB_URL=postgres://hedgedoc:password@database:5432/hedgedoc
      - CMD_DOMAIN=localhost
      - CMD_URL_ADDPORT=true
      - CMD_PORT=3000
      - CMD_DB_PORT=5432
      - CMD_LOGLEVEL=debug
      - PGID=1000
      - PUID=1000
      - DEBUG=true
    volumes:
      - uploads:/hedgedoc/public/uploads
    ports:
      - "3000:3000"
    restart: always
    depends_on:
      - database
volumes:
  database:
  uploads:

I already tried:

The same NAS, i tried to run codimd withour problem

Codimd yaml:

version: "3"
services:
  database:
    image: postgres:11.6-alpine
    environment:
      - POSTGRES_USER=codimd
      - POSTGRES_PASSWORD=change_password
      - POSTGRES_DB=codimd
    volumes:
      - "database-data:/var/lib/postgresql/data"
    restart: always
  codimd:
    image: hackmdio/hackmd:2.4.2
    environment:
      - CMD_DB_URL=postgres://codimd:change_password@database/codimd
      - CMD_USECDN=false
      #- CMD_IMAGE_UPLOAD_TYPE=imgur
      #- CMD_IMGUR_CLIENTID=c0cef7257d016cb
    depends_on:
      - database
    ports:
      - "3000:3000"
    volumes:
      - upload-data:/home/hackmd/app/public/uploads
    restart: always
volumes:
  database-data: {}
  upload-data: {}

You need to set CMD_DOMAIN to the actual domain you use. If you access your NAS using its IP address, use that.

See also FAQ - HedgeDoc

Thank you! After i set ip as CMD_DOMAIN, the page opened without any problem.