Running Snippet Box in Docker [Web Based Code/Link/Notes Snippets Organizer]

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=xNpcHoyRfA0



Duration: 1:35
190 views
9


#Docker #Linux #Ubuntu #SnippetBox

Full steps can be found at https://i12bretro.github.io/tutorials/0767.html

--------------------------------------------------------------------
What is Snippet Box?
--------------------------------------------------------------------
Snippet Box is a simple self-hosted app for organizing your code snippets. It allows you to easily create, edit, browse and manage your snippets in various languages. - https://github.com/pawelmalak/snippet-box
 
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
   01. Log into the Linux based device
   02. Run the following commands in the terminal
         # install prerequisites
         sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
         # add docker gpg key
         curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
         # add docker software repository
         sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
         # install docker
         sudo apt install docker-ce docker-compose containerd.io -y
         # enable and start docker service
         sudo systemctl enable docker && sudo systemctl start docker
         # add the current user to the docker group
         sudo usermod -aG docker $USER
         # reauthenticate for the new group membership to take effect
         su - $USER
 
--------------------------------------------------------------------
Running Snippet Box
--------------------------------------------------------------------
   01. Continue with the following commands in a terminal window
         # create a working directory
         mkdir ~/docker/snippet-box -p
         # run the snippet-box container
         docker run -d --name=snippet-box -p 5000:5000 -v ~/docker/snippet-box:/app/data --restart=unless-stopped pawelmalak/snippet-box
   02. Open a web browser and navigate to http://DNSorIP:5000
   03. Welcome to Snippet Box
 
Documentation:  https://hub.docker.com/r/pawelmalak/snippet-box
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
Browser Based
Container
Containerization
Developer
Docker
Docker Container
Docker Host
Docker Made Easy
Docker Made Simple
Docker Tutorial
Home Lab
Home Lab Ideas
How To
Install Docker Host
Install Guide
Installation
Linux
Self-Hosted
Snippet Box
Snippet-Box
Source Code
Source Code Tracking
Tutorial
Ubuntu
Web Based
Web Based Tools
Web Developer
i12bretro