Skip to content

Instantly share code, notes, and snippets.

View maxneuvians's full-sized avatar
🐝

Max Neuvians maxneuvians

🐝
  • Canadian Digital Service
  • Ottawa, Ontario
  • 12:30 (UTC -04:00)
View GitHub Profile
@maxneuvians
maxneuvians / start_docker_registry.bash
Created March 15, 2017 19:40 — forked from PieterScheffers/start_docker_registry.bash
Start docker registry with letsencrypt certificates (Linux Ubuntu)
#!/usr/bin/env bash
# install docker
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
# install docker-compose
# https://docs.docker.com/compose/install/
# install letsencrypt
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04
#Stories are embedded docs in a Feed
class Feed
include MongoMapper::Document
many :stories
end
class Story
include MongoMapper::EmbeddedDocument
key :title, String