"Unable to connect to to Home Assistant" 2021.7 on docker-compose

I get “Unable to connect to to Home Assistant” with all stable versions of 2021.7 on docker-compose.
I have tried the fixes at
https://community.home-assistant.io/t/migration-to-2021-7-fails-fatal-python-error-init-interp-main-cant-initialize-time/320648
but I think it is a different problem with only docker-compose

docker ps
shows
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
906333103ebd homeassistant/home-assistant:stable “/init” 10 minutes ago Up 10 minutes home-assistant

2021.6.6 works fine.

What does docker logs home-assistant say?

Ah, this may be the hint I need (although I do not know how to fix it:-

2021-07-18 02:47:10 WARNING (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from ::1, but your HTTP integration is not set-up for reverse proxies; This request will be blocked in Home Assistant 2021.7 unless you configure your HTTP integration to allow this header

Are you using a reverse proxy? See breaking changes in 2021.7 release notes. ::1 is IPv6 loopback/localhost address.

I think that I am getting closer:-
I added the http integration to homeassistant/configuration.yaml

http:
  ssl_certificate: /etc/letsencrypt/live/fisher.net.nz/fullchain.pem
  ssl_key: /etc/letsencrypt/live/fisher.net.nz/privkey.pem
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.1.1.12
    - 127.0.0.0
    - ::1
    - 10.1.1.0/24

but I still get

Received X-Forwarded-For header from an untrusted proxy 127.0.0.1
Received X-Forwarded-For header from an untrusted proxy ::1

I can connect to HASS in safe mode at 10.1.1.12:8123 only

At last, I got it fixed (corrected my typo error)
http integration now looks like this:-

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.1.1.12
    - 127.0.0.1
    - 10.1.1.0/24