Docker + Joplin + Caddy + subdirectory

Hi,

docker-compose.yml

version: '3'

services:
  db:
    image: postgres:13.1
    container_name: joplin-db
    volumes:
        - ./data/joplin/db:/var/lib/postgresql/data
    ports:
        - "5432:5432"
    restart: unless-stopped
    environment:
        - POSTGRES_PASSWORD=pgpassword
        - POSTGRES_USER=pguser
        - POSTGRES_DB=joplin
    networks:
      - notweb

  app:
    # image: joplin/server:latest
    image: florider89/joplin-server:2.6.3
    container_name: joplin-server
    depends_on:
        - db
    ports:
        - "22300:22300"
    restart: unless-stopped
    environment:
        - APP_PORT=22300
        - APP_BASE_URL=https://choo.duckdns.org/joplin
        - DB_CLIENT=pg
        - POSTGRES_PASSWORD=pgpassword
        - POSTGRES_DATABASE=joplin
        - POSTGRES_USER=pguser
        - POSTGRES_PORT=5432
        - POSTGRES_HOST=joplin-db
    networks:
      - notweb
      - web

networks:
web:
  external: true
notweb:
  external: false

Caddyfile:

choo.duckdns.org {
    reverse_proxy /joplin* joplin-server:22300
}

If i go ho choo.duckdns.org/joplin i see error:

In logs docker-compose:

2021-11-16 23:13:45: [error] App: 404: GET /joplin/login: ::ffff:172.27.0.3: Path not found: joplin/login
2021-11-16 23:13:45: App: GET /joplin/login (404) (3ms)
2021-11-16 23:13:45: [error] App: 404: GET /joplin/css/bulma.min.css: ::ffff:172.27.0.3: Path not found: joplin/css/bulma.min.css
2021-11-16 23:13:45: App: GET /joplin/css/bulma.min.css (404) (8ms)
2021-11-16 23:13:45: [error] App: 404: GET /joplin/css/fontawesome/css/all.min.css: ::ffff:172.27.0.3: Path not found: joplin/css/fontawesome/css/all.min.css
2021-11-16 23:13:45: App: GET /joplin/css/fontawesome/css/all.min.css (404) (11ms)
2021-11-16 23:13:45: [error] App: 404: GET /joplin/css/main.css: ::ffff:172.27.0.3: Path not found: joplin/css/main.css
2021-11-16 23:13:45: [error] App: 404: GET /joplin/js/main.js: ::ffff:172.27.0.3: Path not found: joplin/js/main.js
2021-11-16 23:13:45: [error] App: 404: GET /joplin/js/jquery.min.js: ::ffff:172.27.0.3: Path not found: joplin/js/jquery.min.js
2021-11-16 23:13:45: App: GET /joplin/css/main.css (404) (16ms)
2021-11-16 23:13:45: App: GET /joplin/js/main.js (404) (17ms)
2021-11-16 23:13:45: App: GET /joplin/js/jquery.min.js (404) (22ms)
2021-11-16 23:13:45: [error] App: 404: GET /joplin/js/main.js: ::ffff:172.27.0.3: Path not found: joplin/js/main.js
2021-11-16 23:13:45: App: GET /joplin/js/main.js (404) (3ms)
2021-11-16 23:14:16: [error] App: 404: GET /joplin: ::ffff:172.27.0.3: Path not found: joplin
2021-11-16 23:14:16: App: GET /joplin (404) (3ms)

Joplin not working

Help...

i have the same problem, did you solve it?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.