Fresh install, cannot login

I managed to get a fresh install in docker on synology, using portainer.
Here is the docker-compose for the portainer stack:

#
# Try yet again.
#
version: '3'

networks:
    macvlan3:
      external: true
    nextcloud_default:
      external: false

services:
  db:
    image: mariadb
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
    volumes:
      - /volume1/docker/nextcloud/mysql:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=somerootpassword
      - MYSQL_PASSWORD=somemysqlpassword
      - MYSQL_DATABASE=db
      - MYSQL_USER=mysqluser
    networks:
       nextcloud_default:

  redis:
    image: redis
    restart: always
    command: redis-server --requirepass someredispassword
    networks:
       nextcloud_default:

  app:
    image: nextcloud:latest
    restart: always
    container_name: nextcloud

    networks:
       nextcloud_default:
       macvlan3:
          ipv4_address: 192.168.3.132    
    ports:
     - 80:80
     - 443:443
    extra_hosts:
     - "nextcloud.zepherin.com:192.168.3.132"

    links:
      - db
      - redis

    volumes:
      - /volume1/docker/nextcloud/www:/var/www/html
      - /volume1/docker/nextcloud/config:/config
      - /volume1/docker/nextcloud/data:/data

    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Australia/Brisbane
      - MYSQL_PASSWORD=somemysqlpassword
      - MYSQL_DATABASE=db
      - MYSQL_USER=mysqluser
      - MYSQL_HOST=db
      - REDIS_HOST_PASSWORD=someredispassword

    depends_on:
      - db
      - redis

I added an admin user. I then login to that admin user. I just pop back to the login page.

I have found how to reset the password, so I did that. Again, cannot login.
Using the php occ I added a new user, and added them to the admin group.
Same problem: cannot login.

The console log shows:

2022-05-11T05:15:42.304288892Z 192.168.3.116 - - [11/May/2022:15:15:42 +1000] "POST /login HTTP/1.1" 303 1133 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
2022-05-11T05:15:42.335451581Z 192.168.3.116 - - [11/May/2022:15:15:42 +1000] "GET /apps/dashboard/ HTTP/1.1" 303 1136 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
2022-05-11T05:15:42.386371920Z 192.168.3.116 - - [11/May/2022:15:15:42 +1000] "GET /login?redirect_url=/apps/dashboard/ HTTP/1.1" 200 7072 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
2022-05-11T05:15:43.538236136Z 192.168.3.116 - - [11/May/2022:15:15:43 +1000] "GET /cron.php HTTP/1.1" 200 1197 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"

This corresponds to be hitting “Log In” button with user/password (verified correct) prefilled in form. I just go right back to the same page. Does not log me in. Either the original admin user, or the new admin user. Same issue.

If I attempt to login using “http://nextcloud.zepherin.com”, rather than “http://192.168.3.132” I get:


Access through untrusted domain

Please contact your administrator. If you are an administrator, edit the "trusted_domains" setting in config/config.php like the example in config.sample.php.

Further information how to configure this can be found in the documentation.

I have tried to edit the config. There are no editors in the container. Nice.
ed/vi/vim/nano have all been tried. Nothing.

  Warning  core               Trusted domain error. "192.168.3.116" tried to access using                   2022-05-11T05:21:43+00:00 
                              "nextcloud.zepherin.com" as host.                                                                       

I do note that the DB host is supposedly “db” but I find that the /etc/hosts file on the main con tainer has no “db” entry. However, it must be working, as prior to this, I had not added the “nextcloud_default” network to the “app” container so the other two containers spun up a private network but the “app” container was not on it.
With the current config, they are all on the back-end private bridge, and the “app” is also on the macvlan.

I can confirm that on the “db” container, the oc_users table has the users I’ve added.
So why can’t I log in?

Strangely, I can login using the IOS app. This is on the same network as this machine, the one which resists login using firefox. It is a firefox issue?