From cd664d2f5c82ea9954a3f727cf7ac523b2d1f990 Mon Sep 17 00:00:00 2001 From: eneller Date: Thu, 28 Sep 2023 12:40:35 +0200 Subject: [PATCH] add: joplin --- joplin/docker-compose_joplin.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 joplin/docker-compose_joplin.yml diff --git a/joplin/docker-compose_joplin.yml b/joplin/docker-compose_joplin.yml new file mode 100644 index 0000000..2d1d17e --- /dev/null +++ b/joplin/docker-compose_joplin.yml @@ -0,0 +1,31 @@ +version: '3' + +services: + db: + image: postgres:14 + container_name: postgres +# ports: +# - 5433:5432 + restart: unless-stopped + volumes: + - ./postgres:/var/lib/postgresql/data # Make database files persistent. Otherwise data is lost when the container is destroyed. + environment: + - APP_PORT=22300 # port joplin-server is reachable at + - POSTGRES_PASSWORD=mypassword123 # database password + - POSTGRES_USER=admin # database user + - POSTGRES_DB=joplin # database name + app: + image: joplin/server:latest + depends_on: + - db + ports: + - "50002:22300" # Expose internal port to LAN + restart: unless-stopped + environment: + - APP_BASE_URL=https://joplin.example.org + - DB_CLIENT=pg + - POSTGRES_PASSWORD=mypassword123 + - POSTGRES_DATABASE=joplin + - POSTGRES_USER=admin + - POSTGRES_PORT=5432 + - POSTGRES_HOST=db