Hello All,
OS Version: Rocky Linux 8.5
Joplin Server: 2.7.4
Thanks in advance for any responses. I am a first time consumer of Joplin Server and am attempting to setup Joplin Server using docker-compose as seen on Git. I have the docker-compose.yml file configured as follows:
# This is a sample docker-compose file that can be used to run Joplin Server
# along with a PostgreSQL server.
#
# All environment variables are optional. If you don't set them, you will get a
# warning from docker-compose, however the app should use working defaults.
version: '3'
services:
db:
image: postgres:13
volumes:
- ./data/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=[password]
- POSTGRES_USER=joplin
- POSTGRES_DB=${POSTGRES_DATABASE}
app:
image: joplin/server:latest
depends_on:
- db
ports:
- "22300:22300"
restart: unless-stopped
environment:
- APP_PORT=22300
- APP_BASE_URL=${APP_BASE_URL}
- DB_CLIENT=pg
- POSTGRES_PASSWORD=[password]
- POSTGRES_DATABASE=${POSTGRES_DATABASE}
- POSTGRES_USER=joplin
- POSTGRES_PORT=${POSTGRES_PORT}
- POSTGRES_HOST=db
When starting and testing the container, it appears to start properly:
[root@cloud1 docker]# curl localhost:22300/api/ping
{"status":"ok","message":"Joplin Server is running"}[root@cloud1 docker]#
I have Apache reverse proxy configured (possibly incorrectly), using the following configuration:
/etc/httpd/conf/joplin.conf
<VirtualHost _default_:80>
ProxyRequests Off
ProxyPreserveHost On
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
ProxyPass / localhost:22300
ProxyPassReverse / localhost:22300
</VirtualHost>
<VirtualHost _default_:443>
ProxyRequests Off
ProxyPreserveHost On
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
ProxyPass / localhost:22300
ProxyPassReverse / localhost:22300
</VirtualHost>
<Proxy "*">
Require ip 192.168.0
</Proxy>
The issue lies when attempting to reach the cloud1/joplin, or cloud1/joplin/login web pages. These pages return:
# Not Found
The requested URL was not found on this server.
I will note that navigating to just cloud1/ will properly return the Apache test web page as expected. It seems that Apache is not able to reach the Joplin server resource. Has anyone run into something similar?
Please note I had to remove 'http://' from all urls in order to submit the post.