Currently running the self-hosted version 2.5.10 beta with no issues. Over the past week I've been trying to update to the 2.6.x betas. but I'm having a port issue. I'm not sure how to fix.
Running on Debian 11.
This is my log error:
Error: Invalid number value for env variable POSTGRES_PORT = "5442"
at Object.parseEnv (/home/joplin/packages/server/src/env.ts:140:24)
at /home/joplin/packages/server/src/app.ts:102:23
at Generator.next ()
at fulfilled (/home/joplin/packages/server/dist/app.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Here is my docker-compose.server.yml file which has worked well since the self host option has been available:
version: '3'
services:
db:
image: postgres:13.4
container_name: joplin-postgres
ports:
- "5442:5442"
restart: unless-stopped
volumes:
- ./postgres-data:/var/lib/postgresql/data
environment:
- APP_PORT=22300
- POSTGRES_PASSWORD=password
- POSTGRES_USER=joplin
- POSTGRES_DB=joplin
app:
image: joplin/server:2.6.10-beta
container_name: joplin-server-2610
depends_on:
- db
ports:
- "22300:22300"
restart: unless-stopped
environment:
- APP_BASE_URL=https://joplin.mydomain.com
- DB_CLIENT=pg
- POSTGRES_PASSWORD=password
- POSTGRES_DATABASE=joplin
- POSTGRES_USER=joplin
- POSTGRES_PORT="5442"
- POSTGRES_HOST=db
I'm not sure why the port issue all of a sudden. If I go back to 2.5.10 all is fine. I appreciate any help!