Sign inSign up

lchristolo/turtl-server

By lchristolo

•Updated almost 7 years ago

Turtl server with mail plugin

Image
0

826

lchristolo/turtl-server repository overview

⁠Turtl-server

Turtl is a free note-taking application

⁠Docker-compose

You can launch the server with docker-compose :

version: '2.1'

services:
  turtl-server:
    image: lchristolo/turtl-server
    environment:
      TURTL_DB_HOST: postgres-db
      TURTL_DB_PORT: 5432
      TURTL_DB_DATABASE: turtl
      TURTL_DB_USER: turtl
      TURTL_DB_PASSWORD: turtl
      TURTL_APP_SECURE_HASH_SALT: abuHassN892MMn
    ports:
      - 80:8181
    depends_on:
      postgres-db:
        condition: service_healthy
    volumes:
      - ./config/config.yaml:/app/config/config.yaml
    networks:
      - turtl_net



  postgres-db:
    image: postgres:11-alpine
    environment:
      POSTGRES_PASSWORD: turtl
      POSTGRES_USER: turtl
      POSTGRES_DB: turtl
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U turtl"]
      interval: 10s
      timeout: 5s
      retries: 5
    volumes:
      - ./db-data:/var/lib/postgresql/data
      - ./uploads-data:/uploads
    networks:
      - turtl_net

networks:
  turtl_net:
    driver: bridge
    internal: false


⁠Configuration

Configuration file : /app/config/config.yaml

The mail plugin is already installed

The API server is listening on the port 8181

Example configuration :

server:
  port: 8181

db:
  host: 'db'
  port: 5432
  database: 'turtl'
  user: 'turtl'
  password: ''
  pool: 24

loglevel: 'info'

app:
  enable_bookmarker_proxy: false
  # no trailing slash
  api_url: 'http://api.yourdomain.com:8181'
  www_url: 'https://yourdomain.com'
  emails:
    admin: '[email protected]'
    info: 'Turtl <[email protected]>'
    invites: '[email protected]'
  secure_hash_salt: "Plaque is a figment of the liberal media and the dental industry to scare you into buying useless appliances and pastes. Now, I've read the arguments on both sides and I haven't found any evidence yet to support the need to brush your teeth. Ever."
  allow_unconfirmed_invites: true

sync:
  # how many sync records can a client send at a time? it's a good idea to have
  # a limit here, lest a rogue client flood the server with sync items
  max_bulk_sync_records: 32

plugins:
  plugin_location: '/app/example-plugins'
  analytics:
    enabled: false
  email:
    enabled: true
    endpoint: 'smtp://mail.test.com:25'
    defaults: {}
  premium:
    enabled: false

uploads:
  local: '/uploads'
  local_proxy: true
  url: 'http://127.0.0.1:8181/uploads'

s3:
  token: 'IHADAPETSNAKEBUTHEDIEDNOOOOO'
  secret: ''
  bucket: ''
  endpoint: 'https://s3.amazonaws.com'
  pathstyle: false

Tag summary

Content type

Image

Digest

Size

40.2 MB

Last updated

almost 7 years ago

docker pull lchristolo/turtl-server