-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing docker-compose-joplin-only.yml file #3
Comments
version: '3.4'
x-common-variables: &common-variables
ORIGINS: "'domain.com', 'ext_ip', 'localhost'"
services:
django-joplin-vieweb:
image: gri38/django-joplin-vieweb:latest
depends_on:
- joplin-terminal-xapi
environment:
<<: *common-variables
restart: unless-stopped
volumes:
- joplin:/root/.config/joplin:ro
- joplin-vieweb:/root/.config/joplin-vieweb
- certbot_www:/var/www/certbot/:ro
networks:
- YOUR-NETWORK
ports:
- <PORT_TO_PROXY_MNGR>:8000
joplin-terminal-xapi:
image: gri38/joplin-terminal-xapi:latest
restart: unless-stopped
volumes:
- joplin:/root/.config/joplin
networks:
- YOUR-NETWORK
# joplin-vieweb-certbot:
# image: gri38/joplin-vieweb-certbot:latest
# restart: unless-stopped
# environment:
# <<: *common-variables
# depends_on:
# - joplin-vieweb-nginx
# volumes:
# - certbot_www:/var/www/certbot/:rw
# - certbot_conf:/etc/letsencrypt/:rw
# joplin-vieweb-nginx:
# image: gri38/joplin-vieweb-nginx:latest
# restart: unless-stopped
# ports:
# - 80:80
# - 443:443
# environment:
# <<: *common-variables
# volumes:
# - certbot_www:/var/www/certbot/:ro
# - certbot_conf:/etc/letsencrypt/:ro
# networks:
# - YOUR-NETWORK
volumes:
joplin:
joplin-vieweb:
certbot_www:
certbot_conf:
networks:
YOUR-NETWORK:
external: true |
Thanks for you reply. I just want to use it in my local network. It always stucks on "Listening to TCP adress...." |
I think that it's not a problem of joplin vieweb. I just tested another configuration by adding server's local ip in For example, if I wan't to connect to x-common-variables: &common-variables
ORIGINS: "''192.168.178.162`'" After then, I could access Joplin-vieweb in local network. If HTTP request was not handed to django-joplin-vieweb container, You might attempted to connect to wrong adress. For example, by |
Hello. I'm glad you use the project. @kestr31 you were right.
x-common-variables: &common-variables
ORIGINS: "'localhost', '192.168.21.1'"
networks:
YOUR-NETWORK:
external: true Do you think it's required ? It worked without for me... But it won't work directly because the django CSRF_TRUSTED_ORIGINS are built from origins like that: So trusted origins will be, in my example: @tpbraini couls you please explin your conf. I think the solution should be to set the origins like that: x-common-variables: &common-variables
ORIGINS: "'http://localhost:1234', 'http://192.168.21.1:1234'" For external access: x-common-variables: &common-variables
ORIGINS: "'https://domain:1234', 'https://11.22.33.44:1234'" But usually for extrenal access it will be the standard https port, not written in url, so we should configure like that: x-common-variables: &common-variables
ORIGINS: "'https://domain', 'https://11.22.33.44'" Let me know about yuor conf, I'll implement the parse of scheme://address[:port] |
I tried some changes: could you try please to use:
services:
django-joplin-vieweb:
image: gri38/django-joplin-vieweb:2.0.2-4 It works for me, but I still have issues with settings (get conf fails: I'll have a look to that but for the moment let me know if it's better for you). If it works for you, I'll test in my prod environnement (with the certbot containers) and I'll fix the remaining issue with settings, and I'll release the 2.0.2. Thanks for your beta testing ! |
Works like a charm many thanks ! |
Just a side note on the over hand, could you add the e2ee config in your custom settings part?
Again, kudos for your amazing job till there! 😍 |
docker-compose-joplin-only.yaml with django-joplin-vieweb 2.0.2-4 image unfortunately the latest didn't worked for me as I tried also. Thanks for the issue I will document it ;-) |
Ok thanks for the trials. |
Everything work perfectly for me till e2ee issue |
Works fine for me as well. |
Any hints for Joplin only configuration.
Leaving away...
-joplin nginx viewweb
-certbot
...doesn*t work for me,
joplin-vieweb-django-joplin-vieweb-1 | Configuring endpoint tcp:port=8001:interface=127.0.0.1
joplin-vieweb-django-joplin-vieweb-1 | Listening on TCP address 127.0.0.1:8001
^CGracefully stopping... (press Ctrl+C again to force)
The text was updated successfully, but these errors were encountered: