Update docker-compose.yaml
Some checks failed
Updates/Joplin/pipeline/head There was a failure building this commit

This commit is contained in:
Adam Outler 2025-03-30 19:52:29 +00:00
parent e52d4c749c
commit 9496a040c0

View File

@ -1,4 +1,7 @@
services:
x-common-variables: &common-variables
ORIGINS: "'https://joplin.adamoutler.com','https://server.joplin.adamoutler.com', 'http://192.168.1.115:8083','http://192.168.1.115:8088'"
JOPLIN_LOGIN_REQUIRED: True
joplin:
image: joplin/server:latest
container_name: joplin-server
@ -15,24 +18,17 @@ services:
networks:
- joplin-net
vieweb:
image: gri38/django-joplin-vieweb # Check Docker Hub for the image name/tags
ports:
- "8088:8000" # Or your preferred host port
image: gri38/django-joplin-vieweb:latest
depends_on:
- joplin-terminal-xapi
environment:
# *** Points to your Joplin Server instance ***
- JOPLIN_URL=https://server.joplin adamoutler.com # Use service name if on same Docker network
# Or use http://your_server_ip_or_domain:22300 if accessing externally/differently
# Optional: Set login credentials if your server requires it
# (Check joplin-vieweb docs for exact env var names if needed)
# - JOPLIN_USERNAME=your_joplin_user_email
# - JOPLIN_PASSWORD=your_joplin_user_password
# Optional: Set vieweb specific port if needed inside container (usually defaults ok)
# - PORT=8088
# Optional: Require login to vieweb itself (check docs for JOPLIN_LOGIN_REQUIRED or similar)
# - JOPLIN_LOGIN_REQUIRED=true # or false/unset
<<: *common-variables
restart: unless-stopped
ports:
- 8088:8000
volumes:
- joplin:/root/.config/joplin:ro
- joplin-vieweb:/root/.config/joplin-vieweb
networks:
- joplin-net
terminal-xapi: