How to install in docker-compose on custom port

Thanks, I try to enter from main Vikunja site but was empty page.
I will try install in local enviroment.

Still cannot make it work on different port because that Axios error and API don’t work at all in browser (try incognito Brawe and Firefox). I cannot try on default port because I have already Nextcloud and Document Sever installed and configured.
Regards.

OK, I install on another device on different port like that:

version: '3'

services:
  db:
    image: mariadb:10
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
    environment:
      MYSQL_ROOT_PASSWORD: supersecret
      MYSQL_USER: vikunja
      MYSQL_PASSWORD: secret
      MYSQL_DATABASE: vikunja
    volumes:
      - ./db:/var/lib/mysql
    restart: unless-stopped
  api:
    image: vikunja/api
    environment:
      VIKUNJA_DATABASE_HOST: db
      VIKUNJA_DATABASE_PASSWORD: secret
      VIKUNJA_DATABASE_TYPE: mysql
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_JWTSECRET: Ahxxxxxxxxxxxxxxx
      VIKUNJA_SERVICE_FRONTENDURL: http://192.168.0.189/
    ports:
      - 3456:3456
    volumes:
      - ./files:/app/vikunja/files
    depends_on:
      - db
    restart: unless-stopped
  frontend:
    image: vikunja/frontend
    ports:
      - 8022:80
    environment:
      VIKUNJA_API_URL: http://192.168.0.189:3456/api/v1
    restart: unless-stopped

Can You tell me @kolaente how can I secure my Vikunja because now everyone who knows address can create account and use my app?

I’d disable registration: Config options | Vikunja

It also looks like you set the api url to the ip of a local network - if you don’t explicitely configure port forwarding on your home router it won’t be accessible outside of your local network.

I want to add it now to Nginx Proxy Manager.

The variable you’re looking for is

- VIKUNJA_SERVICE_ENABLEREGISTRATION: false

Did you ever figure out how to fix the “AxiosError: Network Error” ? I am having the same issue with my docker-compose installation without a proxy server.

my bad, this was a misspelling error on my part in the compose file.