Sign inSign up

tsingjyujing/leanote-app

By tsingjyujing

•Updated over 7 years ago

A leanote docker image for docker-compose

Image
0

1.2K

tsingjyujing/leanote-app repository overview

⁠Leanote Server on Docker

⁠Docker Compose Example

version: "2.1"
services:
  leanote:
    image: tsingjyujing/leanote-app
    volumes:
      - "~/app/leanote/conf/app.conf:/go/src/github.com/leanote/leanote/conf/app.conf"
      - '~/app/leanote/files:/go/src/github.com/leanote/leanote/files'
      - '~/app/leanote/upload:/go/src/github.com/leanote/public/upload'
    restart: "always"
    ports:
      - "8002:8080"
    depends_on:
      - mongo

  mongo:
    image: tsingjyujing/leanote-mongodb
    entrypoint: "/bin/bash"
    restart: "always"
    command:
      - "/root/start-db.sh"
    healthcheck:
      test: "echo 'db.stats().ok' | mongo 127.0.0.1:27017/leanote --quiet"
    volumes:
      - "~/app/leanote/mongodb:/data/db"
    mem_limit: 500M
    memswap_limit: 100M

Tag summary

Content type

Image

Digest

Size

140.8 MB

Last updated

over 7 years ago

docker pull tsingjyujing/leanote-app