Code Monkey home page Code Monkey logo

snibox's Introduction

Docker Image CI

Snibox

Snibox selfhosted snippet, an sqlite version for my personal use based on pivpav I will try to maintain and develop some new features as I need. Contributions are welcomed from everyone.

Changelog

  • Increase file title and content length
  • Increase snippet title length
  • Added LaTeX support
  • Added TOML support
  • Added Octave/Matlab support
  • Added support to arm and arm64

Build

To build this image use following command:

git clone https://github.com/MohamedElashri/Snibox
docker build -t snibox .

Usage

To use this image

docker pull melashri/snibox:latest

Or pass the variables directly (port and bind to a local volume)

docker run -d --name snibox \
              --volume /home/snibox/app/db:/app/db/database \
              --publish 4500:3000 \
              --restart always \
              melashri/snibox

docker-compose

You can use the follwing docker-compose.yml file

version: '3'
services:
    snibox:
        container_name: snibox
        volumes:
            - '/home/user/snibox/app/db:/app/db/database'
        ports:
            - '3000:3000'
        restart: always
        image: melashri/snibox

Container runs rake db:migrate on every start, in order to create database file if not exist, or update database scheme if required, so backups are highly recommended.

Environment variables

DATABASE - Defines sqlite3 database file location within container.

Default: /app/db/database/snibox.sqlite3


SECRET_KEY_BASE - Defines secret_key_base parameter for your Rails application. Default one is included into the image already, but general recommendation is to change it.


LOGLEVEL - Defines logging level for Rails application. Available options are: debug, info, warn, error and fatal

Default: debug

snibox's People

Contributors

mohamedelashri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

snibox's Issues

ARM64 Build

Hello! I left you a message on Reddit but I figured this may get to you quicker. I am trying to build this on my Raspberry Pi server but it seems the ARM64 build is broken. Is there a way to fix this? Below is my docker compose file:

version: '3'
services:
snibox:
container_name: snibox
volumes:
- '/srv/dev-disk-by-uuid-cf637b05-171b-4048-b0b6-081f5ccf2e33/docker_files/snibox/app/db:/app/db/database'
ports:
- '83:3000'
restart: always
image: melashri/snibox:latest

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.