Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
1.2 kB
25
Indexable
Never
version: '3'

services:
    db:
        image: postgres:15
        container_name: Joplin-DB
        volumes:
            - /volume1/docker/joplin:/var/lib/postgresql/data
        ports:
            - 5435:5432
        restart: always
        environment:
            - POSTGRES_PASSWORD=joplin88
            - POSTGRES_USER=joplin88
            - POSTGRES_DB=joplin88
    app:
        image: joplin/server:2.9.7-beta
        container_name: Joplin
        depends_on:
            - db
        ports:
            - 22300:22300
        restart: always
        environment:
            - APP_PORT=22300
            - APP_BASE_URL=https://joplin.NASNAME.synology.me
            - DB_CLIENT=pg
            - POSTGRES_PASSWORD=joplin88
            - POSTGRES_DATABASE=joplin88
            - POSTGRES_USER=joplin88
            - POSTGRES_PORT=5432
            - POSTGRES_HOST=db
            - MAX_TIME_DRIFT=0
        
    adminer:
        image: adminer:latest
        container_name: Adminer
        hostname: adminer
        mem_limit: 128m
        cpu_shares: 256
        security_opt:
            - no-new-privileges:true
        user: 1026:100
        ports:
            - 8220:8080
        restart: on-failure:5
Leave a Comment