Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host a static Jekyll website (WIP) #5

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions website/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_site
vendor
data-cjdns
53 changes: 53 additions & 0 deletions website/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: '2'

services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- "/etc/nginx/vhost.d"
- "/usr/share/nginx/html"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "/etc/nginx/certs"
environment:
ENABLE_IPV6: "false" # Enable when ready

letsencrypt-nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
volumes_from:
- "nginx-proxy"
environment:
ACME_CA_URI: https://acme-staging.api.letsencrypt.org/directory # testing value

jekyll:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we need to put github.com/tomeshnet/tomesh.net as source and add the webhook?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something like that!

command: jekyll serve
image: jekyll/jekyll:latest
depends_on:
- nginx-proxy
- letsencrypt-nginx-proxy-companion
volumes:
- $PWD:/srv/jekyll
- $PWD/vendor/bundle:/usr/local/bundle
ports:
- "4000:4000"
- "35729:35729"
- "3000:3000"
environment:
VIRTUAL_HOST: "tomesh.dev,www.tomesh.dev"
VIRTUAL_PORT: 4000
LETSENCRYPT_HOST: "tomesh.dev,www.tomesh.dev"
LETSENCRYPT_EMAIL: "[email protected]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What email shall we use for this? Shall we make one for tools? https://github.com/tomeshnet/documents/blob/master/service_setup/email.md#public-accounts

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes


cjdns:
image: chpio/cjdns:latest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably run a particular tag than let it version float.

cap_add:
- NET_ADMIN
volumes:
- ./data-cjdns:/data/cjdns
devices:
- /dev/net/tun