Skip to main content

Docker Compose

services:
    homebox:db:
        image: ghcr.io/sysadminsmedia/homebox:latestpostgres:16
        container_name: homeboxjoplin-db
        volumes:
            - ./data:/var/lib/postgresql/data
        ports:
            - "5432:5432"
        restart: unless-stopped
        environment:
            - HBOX_LOG_LEVEL=infoPOSTGRES_PASSWORD=<your database password>
            - HBOX_LOG_FORMAT=textPOSTGRES_USER=joplin
            - HBOX_WEB_MAX_UPLOAD_SIZE=10POSTGRES_DB=joplindb
    app:
        image: joplin/server:latest
        container_name: joplin
        depends_on:
            - HBOX_OPTIONS_ALLOW_REGISTRATION=true #can be changed to false after first time registration
    - TZ=America/Santo_Domingo
    volumes:
      - ./:/data/db
        ports:
            - 3100:7745"22300:22300"
        volumes:restart: homebox:unless-stopped
        driver:environment:
            local- APP_PORT=22300
            - APP_BASE_URL=<your localhost ipaddress:port number>
            - DB_CLIENT=pg
            - POSTGRES_PASSWORD=<your database password> #same as above
            - POSTGRES_DATABASE=joplindb #same as above
            - POSTGRES_USER=joplin #same as above
            - POSTGRES_PORT=5432 #same port on left-hand side of colon as db service above
            - POSTGRES_HOST=db #same as first service name above