Coder Social home page Coder Social logo

qdm12 / stackedit-docker Goto Github PK

View Code? Open in Web Editor NEW
42.0 6.0 15.0 156 KB

StackEdit 5.14.5 Server in a light Docker container

Home Page: https://hub.docker.com/r/qmcgaw/stackedit

License: MIT License

Dockerfile 39.97% Go 60.03%
stackedit markdown-editor markdown caddy alpine caddyserver

stackedit-docker's Introduction

StackEdit Docker server

StackEdit v5.14.5 (January 2020) with a Golang HTTP server on Scratch

Docker StackEdit

Build status Docker Pulls Docker Stars

GitHub last commit GitHub commit activity GitHub issues Donate PayPal

Features

  • Stackedit features
  • Lightweight image based on:
  • Running without root
  • Cross cpu architecture compatible: amd64, 386, arm64v8, arm32v7 and arm32v6 (ask for more)
  • Small 36.8MB image size (amd64, uncompressed)
  • Built-in Docker healthcheck
  • Nice emojis in the logs...

Setup

  1. Use the following command:

    docker run -d -p 8000:8000/tcp qmcgaw/stackedit

    You can also use docker-compose.yml with:

    docker-compose up -d
  2. Access at http://localhost:8000

Environment variables

Environment variable Default Description
LISTENING_PORT 8000 Internal server listening port
ROOT_URL / Root URL to use, useful when used with a reverse proxy
NODE_ENV production Sets production behavior for stackedit
PANDOC_PATH pandoc Non functional yet
WKHTMLTOPDF_PATH wkhtmltopdf Non functional yet
USER_BUCKET_NAME stackedit-users ?
PAYPAL_RECEIVER_EMAIL Receive Paypal donation email address
DROPBOX_APP_KEY
DROPBOX_APP_KEY_FULL
GITHUB_CLIENT_ID
GITHUB_CLIENT_SECRET
GOOGLE_CLIENT_ID
GOOGLE_API_KEY
WORDPRESS_CLIENT_ID

Acknowledgements

Credits to the developers of StackEdit

TODOs

  • Add static binary programs
    • pandoc
    • wkhtmltopdf
  • Travis CI build cross CPU arch

stackedit-docker's People

Contributors

balcsida avatar qdm12 avatar yohanyflores avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

stackedit-docker's Issues

Google API key got converted to lower case

Hi,
I am trying to use the google sign in, but have some problems with my API key. I added one to the docker-compose, but for some reason the GET method uses lower case version of my API key. Therefore I get a 400 INVALID_ARGUMENT.
Is this issue known?
Can I fix this somehow?

Doesn't work with traefik

Hi qdm12,

I try to run this container with my traefik proxy, but i have already an error : 404 not found.
Work perfectly with nodeport open, but not with traefik proxy.

Of course my traefik working fine, and i have 20 apps working with traefik

This is my docker-compose.yml :

version: '3'
services:

#############
# STACKEDIT #
#############
  stackedit:
    image: qmcgaw/stackedit
    container_name: stackedit
    restart: unless-stopped
    networks:
      - traefik_proxy
    ports:
      - 8000:8000
    labels:
      - "traefik.enable=true"
      - "traefik.backend=stackedit"
      - "traefik.frontend.rule=Host:stackedit.${DOMAINNAME}"
      - "traefik.port=8000"
      - "traefik.docker.network=traefik_proxy"
      - "traefik.frontend.headers.SSLRedirect=true"
      - "traefik.frontend.headers.STSSeconds=315360000"
      - "traefik.frontend.headers.browserXSSFilter=true"
      - "traefik.frontend.headers.contentTypeNosniff=true"
      - "traefik.frontend.headers.forceSTSHeader=true"
      - "traefik.frontend.headers.SSLHost=${DOMAINNAME}"
      - "traefik.frontend.headers.STSIncludeSubdomains=true"
      - "traefik.frontend.headers.STSPreload=true"
      - "traefik.frontend.headers.frameDeny=true"



###########
# NETWORK #
###########
networks:
  traefik_proxy:
    external:
      name: traefik_proxy
  default:
    driver: bridge

If you can help me :)

Regard,

404 Page not found after linking a workspace

Hey there,
There is a bug where after linking to a workspace, stackedit redirects to the an url that ends with /app and throws a 404 page not found error (i.e. example.com/app#.....)
(I managed to setup CouchDB and use that instead of Google Drive)
It is possible to just cut out the "app"-part of the url; however, when adding the website to the homescreen on Android and iOS it defaults to this broken url and there is no way of changing this.
Maybe I have done some kind of a mistake while installing the docker image.

Code block highlight didn't work

Hi @qdm12, thanks for your work!
I'm using almost daily stackedit with your docker image.
But I found a problem about the highlight of code block. It seems that do not work. I try to build stackedit by myself, but appear the same problem. Could you help me to solve it?๐Ÿ˜‹
image

How to edit Google Drive token?

This is exactly what I have been looking for!
I have managed to set up Stackedit in docker now but I'd love to configure it with Google Drive.
Unfortunately, I can't seem to find any way to do this...
Any help would be greatly appreciated!

Saving to Local Hard Drive

How do I save an md file in the docker container without downloading it?

Is there a way to mount a local storage folder in stackedit?

Thank you

Yaml settings are not saved

Hi @qdm12, thanks for your work!
I'm using almost daily stackedit with your docker image
I've found you can enable dark theme and changes some configuration from the settings yaml definition, but whenever i've tried to add some setting and save it after setting reopen it was gone and wasn't applied.
Is that some issue or restriction for your image?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.