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.
Sources:
- https://github.com/pawelmalak/snippet-box/blob/master/docker-compose.yml
- https://github.com/pawelmalak/snippet-box
Docker Compose
version: '3.3'
services:
snippet-box:
container_name: snippetbox
ports:
- '5000:5000'
volumes:
- '/srv/config/snippetbox2:/app/data' #map to wherever you want to map
image: pawelmalak/snippet-box
CLI
sudo docker run -d --name snippetbox -p 5100:5000 -v /srv/config/snippetbox:/app/data pawelmalak/snippet-box
map -v /srv/config/snippetbox
to whever you want/need
Docker Compose Alt.
version: 2
volumes:
snippetbox:
services:
snippet-box:
container_name: snippetbox
ports:
- 5000:5000
volumes:
- snippetbox:/app/data
image: pawelmalak/snippet-box