Operating system
Linux
Joplin version
2.14.2
Desktop version info
Linux 5.15.0-94-generic - Virginia
Sync target
Joplin Server
What issue do you have?
I'm try to get Joplin Server working in Docker.
My docker compose looks like this (in Portainer):
version: '3'
services:
db:
image: postgres:latest
volumes:
- ./data/joplin-data:/var/lib/postgresql/data
# Removed ports section for db to make it listen only on internal network
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DATABASE}
networks:
- joplin_network
joplinsync:
image: joplin/server:latest
depends_on:
- db
ports:
- "22300:22300" # Binding to localhost for external access
restart: unless-stopped
environment:
- APP_PORT=${APP_PORT}
- APP_BASE_URL=${APP_BASE_URL}
- DB_CLIENT=${DB_CLIENT}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DATABASE=${POSTGRES_DATABASE}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PORT=5432 # Default Postgres port
- POSTGRES_HOST=db
networks:
- joplin_network
networks:
joplin_network:
I've set env variables including POSTGRES_PASSWORD, POSTGRES_USER, POSTGRES_DATABASE, DB_CLIENT, POSTGRES_PORT.
I have the APP_BASE_URL set to 127.0.0.1 and APP_PORT to 22300.
when I go to 0.0.0.0:22300, I get
Invalid URL
[Go to login page](https://#)
Joplin Server v2.14.2, copyright © 2021-2024 JOPLIN.
so obviously Joplin is serving something.
When I click on Go to login page, the url address concatenates to http://0.0.0.0:22300/127.0.0.1/login and successive clicks on the this link keep adding "127.0.0.1/login" to the url address.
I'm just trying to get this working on localhost right now. That would be a success.
What am I doing wrong?
Thanks