From 7405f4aedb84afbf83a8f804e9dc9b9a7d73b4b9 Mon Sep 17 00:00:00 2001 From: Marcel D Date: Mon, 24 Feb 2025 01:34:31 +0100 Subject: [PATCH] add joplin server --- README.md | 6 +++- joplin-server/docker-compose.yml | 50 ++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 joplin-server/docker-compose.yml diff --git a/README.md b/README.md index 4f9e1e8..747f6d3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ # nas-configs -Contains configuration files, e.g. docker for Synology NAS \ No newline at end of file +Contains configuration files, e.g. docker for Synology NAS + +## Deployment approach + +Copy files to `\\Swaghausen-WG\admin_data\nextcloud` \ No newline at end of file diff --git a/joplin-server/docker-compose.yml b/joplin-server/docker-compose.yml new file mode 100644 index 0000000..703bbe8 --- /dev/null +++ b/joplin-server/docker-compose.yml @@ -0,0 +1,50 @@ +# This is a sample docker-compose file that can be used to run Joplin Server +# along with a PostgreSQL server. +# +# Update the following fields in the stanza below: +# +# POSTGRES_USER +# POSTGRES_PASSWORD +# APP_BASE_URL +# +# APP_BASE_URL: This is the base public URL where the service will be running. +# - If Joplin Server needs to be accessible over the internet, configure APP_BASE_URL as follows: https://example.com/joplin. +# - If Joplin Server does not need to be accessible over the internet, set the APP_BASE_URL to your server's hostname. +# For Example: http://[hostname]:22300. The base URL can include the port. +# APP_PORT: The local port on which the Docker container will listen. +# - This would typically be mapped to port to 443 (TLS) with a reverse proxy. +# - If Joplin Server does not need to be accessible over the internet, the port can be mapped to 22300. +# https://github.com/laurent22/joplin/blob/dev/packages/server/README.md#configure-docker-for-joplin-server + +services: + db: + image: postgres:16 + volumes: + - /volume2/docker/joplin-postgres:/var/lib/postgresql/data + ports: + # use different port to avoid conflict with synology internal postgres db + - "5433:5432" + restart: unless-stopped + environment: + - POSTGRES_PASSWORD=joplinpass123 + - POSTGRES_USER=joplin + - POSTGRES_DB=joplin + network_mode: bridge + + app: + image: joplin/server:3.3.3-beta + depends_on: + - db + ports: + - "22300:22300" + restart: unless-stopped + environment: + - APP_PORT=22300 + - APP_BASE_URL=https://joplin.swaghausen.de + - DB_CLIENT=pg + - POSTGRES_PASSWORD=joplinpass123 + - POSTGRES_DATABASE=joplin + - POSTGRES_USER=joplin + - POSTGRES_PORT=5433 + - POSTGRES_HOST=db + network_mode: bridge