Can't get it to work behind NPM #407

Closed
opened 2026-02-04 19:05:02 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @juvenalandres on GitHub (Jan 31, 2024).

Hello, I've tried to install Planka in Docker. It works great when in localhost, but I'm having trouble trying to run it behind Nginx Proxy Manager. Here are my docker-compose.yml and NPM config. Any help would be much appreciated.

version: '3'

services:
  planka:
    image: ghcr.io/plankanban/planka:latest
    command: >
      bash -c
        "for i in `seq 1 30`; do
          ./start.sh &&
          s=$$? && break || s=$$?;
          echo \"Tried $$i times. Waiting 5 seconds...\";
          sleep 5;
        done; (exit $$s)"
    restart: unless-stopped
    volumes:
      - user-avatars:/app/public/user-avatars
      - project-background-images:/app/public/project-background-images
      - attachments:/app/private/attachments
    ports:
      - 8002:1337
    environment:
      - BASE_URL=https://pla.blank.com
      - DATABASE_URL=postgresql://postgres@postgres/planka
      - SECRET_KEY=notsecretkey
      - TRUST_PROXY=1
      - DEFAULT_ADMIN_EMAIL=blank@blank.com # Do not remove if you want to prevent this user from being edited/deleted
      - DEFAULT_ADMIN_PASSWORD=blank
      - DEFAULT_ADMIN_NAME=blank
      - DEFAULT_ADMIN_USERNAME=blank
    depends_on:
      - postgres

  postgres:
    image: postgres:14-alpine
    restart: unless-stopped
    volumes:
      - /srv/dev-disk-by-uuid-b25ef428-93bd-416b-996e-2d308bee1897/data/appdata/planka/db:/var/lib/postgresql/data
        #- db-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_DB=planka
      - POSTGRES_HOST_AUTH_METHOD=trust

volumes:
  user-avatars:
  project-background-images:
  attachments:
    #db-data:

tempsnip

The logs are not giving much info either.
App

debug: Detected Sails environment is "production", but NODE_ENV is `undefined`.
debug: Automatically setting the NODE_ENV environment variable to "production".
debug:

Postgres


    pg_ctl -D /var/lib/postgresql/data -l logfile start

You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
waiting for server to start....2024-01-31 14:31:52.437 UTC [38] LOG:  starting PostgreSQL 14.10 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
2024-01-31 14:31:52.438 UTC [38] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-01-31 14:31:52.663 UTC [39] LOG:  database system was shut down at 2024-01-31 14:31:49 UTC
2024-01-31 14:31:52.715 UTC [38] LOG:  database system is ready to accept connections
 done
server started
CREATE DATABASE


/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

waiting for server to shut down....2024-01-31 14:31:53.607 UTC [38] LOG:  received fast shutdown request
2024-01-31 14:31:53.640 UTC [38] LOG:  aborting any active transactions
2024-01-31 14:31:53.650 UTC [38] LOG:  background worker "logical replication launcher" (PID 45) exited with exit code 1
2024-01-31 14:31:53.650 UTC [40] LOG:  shutting down
2024-01-31 14:31:53.872 UTC [38] LOG:  database system is shut down
 done
server stopped

PostgreSQL init process complete; ready for start up.

2024-01-31 14:31:54.117 UTC [1] LOG:  starting PostgreSQL 14.10 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
2024-01-31 14:31:54.117 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-01-31 14:31:54.117 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2024-01-31 14:31:54.155 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-01-31 14:31:54.244 UTC [53] LOG:  database system was shut down at 2024-01-31 14:31:53 UTC
2024-01-31 14:31:54.291 UTC [1] LOG:  database system is ready to accept connections
2024-01-31 14:33:13.519 UTC [64] ERROR:  conflicting key value violates exclusion constraint "user_email_unique"
2024-01-31 14:33:13.519 UTC [64] DETAIL:  Key (email)=(blank@blank.com) conflicts with existing key (email)=(blank@blank.com).
2024-01-31 14:33:13.519 UTC [64] STATEMENT:  insert into "user_account" ("created_at", "email", "is_admin", "is_sso", "name", "password", "subscribe_to_own_cards", "username") values ($1, $2, $3, $4, $5, $6, $7, $8)

Thanks in advance

Originally created by @juvenalandres on GitHub (Jan 31, 2024). Hello, I've tried to install Planka in Docker. It works great when in localhost, but I'm having trouble trying to run it behind Nginx Proxy Manager. Here are my `docker-compose.yml` and NPM config. Any help would be much appreciated. ```yaml version: '3' services: planka: image: ghcr.io/plankanban/planka:latest command: > bash -c "for i in `seq 1 30`; do ./start.sh && s=$$? && break || s=$$?; echo \"Tried $$i times. Waiting 5 seconds...\"; sleep 5; done; (exit $$s)" restart: unless-stopped volumes: - user-avatars:/app/public/user-avatars - project-background-images:/app/public/project-background-images - attachments:/app/private/attachments ports: - 8002:1337 environment: - BASE_URL=https://pla.blank.com - DATABASE_URL=postgresql://postgres@postgres/planka - SECRET_KEY=notsecretkey - TRUST_PROXY=1 - DEFAULT_ADMIN_EMAIL=blank@blank.com # Do not remove if you want to prevent this user from being edited/deleted - DEFAULT_ADMIN_PASSWORD=blank - DEFAULT_ADMIN_NAME=blank - DEFAULT_ADMIN_USERNAME=blank depends_on: - postgres postgres: image: postgres:14-alpine restart: unless-stopped volumes: - /srv/dev-disk-by-uuid-b25ef428-93bd-416b-996e-2d308bee1897/data/appdata/planka/db:/var/lib/postgresql/data #- db-data:/var/lib/postgresql/data environment: - POSTGRES_DB=planka - POSTGRES_HOST_AUTH_METHOD=trust volumes: user-avatars: project-background-images: attachments: #db-data: ``` ![tempsnip](https://github.com/plankanban/planka/assets/18738412/a22c7a96-0ebd-44a4-aed3-d02f435825be) The logs are not giving much info either. App ``` debug: Detected Sails environment is "production", but NODE_ENV is `undefined`. debug: Automatically setting the NODE_ENV environment variable to "production". debug: ``` Postgres ```Success. You can now start the database server using: pg_ctl -D /var/lib/postgresql/data -l logfile start You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb. waiting for server to start....2024-01-31 14:31:52.437 UTC [38] LOG: starting PostgreSQL 14.10 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit 2024-01-31 14:31:52.438 UTC [38] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2024-01-31 14:31:52.663 UTC [39] LOG: database system was shut down at 2024-01-31 14:31:49 UTC 2024-01-31 14:31:52.715 UTC [38] LOG: database system is ready to accept connections done server started CREATE DATABASE /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* waiting for server to shut down....2024-01-31 14:31:53.607 UTC [38] LOG: received fast shutdown request 2024-01-31 14:31:53.640 UTC [38] LOG: aborting any active transactions 2024-01-31 14:31:53.650 UTC [38] LOG: background worker "logical replication launcher" (PID 45) exited with exit code 1 2024-01-31 14:31:53.650 UTC [40] LOG: shutting down 2024-01-31 14:31:53.872 UTC [38] LOG: database system is shut down done server stopped PostgreSQL init process complete; ready for start up. 2024-01-31 14:31:54.117 UTC [1] LOG: starting PostgreSQL 14.10 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit 2024-01-31 14:31:54.117 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2024-01-31 14:31:54.117 UTC [1] LOG: listening on IPv6 address "::", port 5432 2024-01-31 14:31:54.155 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2024-01-31 14:31:54.244 UTC [53] LOG: database system was shut down at 2024-01-31 14:31:53 UTC 2024-01-31 14:31:54.291 UTC [1] LOG: database system is ready to accept connections 2024-01-31 14:33:13.519 UTC [64] ERROR: conflicting key value violates exclusion constraint "user_email_unique" 2024-01-31 14:33:13.519 UTC [64] DETAIL: Key (email)=(blank@blank.com) conflicts with existing key (email)=(blank@blank.com). 2024-01-31 14:33:13.519 UTC [64] STATEMENT: insert into "user_account" ("created_at", "email", "is_admin", "is_sso", "name", "password", "subscribe_to_own_cards", "username") values ($1, $2, $3, $4, $5, $6, $7, $8) ``` Thanks in advance
OVERLORD added the help wanted label 2026-02-04 19:05:02 +03:00
Author
Owner

@juvenalandres commented on GitHub (Feb 2, 2024):

Found the issue. Sorry it was my mistake. It was missconfiguration on my dns.

Thank you anyway!

@juvenalandres commented on GitHub (Feb 2, 2024): Found the issue. Sorry it was my mistake. It was missconfiguration on my dns. Thank you anyway!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#407