plankanban / planka

The realtime kanban board for workgroups built with React and Redux.

Home Page:https://planka.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Error]“You need to enable JavaScript to run this app”

ljyfree opened this issue · comments

  • deploy with Docker Compose
$ cat docker-compose.yml 
    version: '3'
    services:
      planka:
        image: ghcr.io/plankanban/planka:latest
        restart: on-failure
        volumes:
          - user-avatars:/app/public/user-avatars
          - project-background-images:/app/public/project-background-images
          - attachments:/app/private/attachments
        ports:
          - 56789:1337                             
        environment:
          - BASE_URL=http://localhost:56789             
          - DATABASE_URL=postgresql://postgres@postgres/planka
          - SECRET_KEY=66666666666666666666      
          - DEFAULT_ADMIN_EMAIL=Cgakki@top.com      
          - DEFAULT_ADMIN_PASSWORD=cgakki          
          - DEFAULT_ADMIN_NAME=cgakki             
          - DEFAULT_ADMIN_USERNAME=cgakki   
      postgres:
        image: postgres:14-alpine
        restart: on-failure
        volumes:
          - db-data:/var/lib/postgresql/data
        environment:
          - POSTGRES_DB=planka
          - POSTGRES_HOST_AUTH_METHOD=trust
        healthcheck:
          test: ["CMD-SHELL", "pg_isready -U postgres -d planka"]
          interval: 10s
          timeout: 5s
          retries: 5
    volumes:
      user-avatars:
      project-background-images:
      attachments:
      db-data:
  • web is blank
  • the content as follows:
bd8afe661eb2:/app$ wget localhost:1337
Connecting to localhost:1337 (127.0.0.1:1337)
saving to 'index.html'
index.html           100% |********************************************************************************************************|   807  0:00:00 ETA
'index.html' saved
bd8afe661eb2:/app$ cat index.html 
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="http://localhost:56789/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Planka is an open source project management software"/><link rel="apple-touch-icon" href="logo192.png"/><link rel="manifest" href="http://localhost:56789/manifest.json"/><title>Planka</title><script defer="defer" src="http://localhost:56789/static/js/main.34ddcf54.js"></script><link href="http://localhost:56789/static/css/main.47e9253a.css" rel="stylesheet"></head><script>window.BASE_URL="http://localhost:56789"</script><body id="app"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>bd8afe661eb2:/app$ 

BASE_URL=http://localhost:56789
Is only working if you are accessing planka from the same machine, docker is running on.

Normally docker is running on a remote host, so change it to the IP or hostname of the docker host

Example:
BASE_URL=http://192.168.0.33:56789

Or

BASE_URL=http://my-docker-host:56789

@daniel-hiller
It works.Thanks so much.