Skip to content
Permalink
Browse files

Added a a deploy method that uses docker-compose and handles auto LE

  • Loading branch information...
antoniomika committed Mar 28, 2019
1 parent e02bb9a commit 1ff3dc19d2d38c783b253ac8939df1df6c486399
Showing with 45 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +42 −0 deploy/docker-compose.yml
@@ -1,4 +1,6 @@
keys/
pubkeys/
ssl/
sish
sish
deploy/*
!deploy/docker-compose.yml
@@ -0,0 +1,42 @@
version: '3.7'

services:
busybox:
image: busybox
volumes:
- ./letsencrypt:/etc/letsencrypt
command: /bin/sh -c "echo '*.$DOMAIN autorestart-containers=sish' > /etc/letsencrypt/domains.conf"
letsencrypt:
image: adferrand/letsencrypt-dns:latest
container_name: letsencrypt-dns
depends_on:
- busybox
environment:
- VERSION=latest
- LETSENCRYPT_USER_MAIL
- LEXICON_PROVIDER
- LEXICON_PROVIDER_OPTIONS
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./letsencrypt:/etc/letsencrypt
restart: always
sish:
image: antoniomika/sish:latest
container_name: sish
depends_on:
- letsencrypt
volumes:
- ./letsencrypt/live/$DOMAIN:/ssl
- ./pubkeys:/pubkeys
- ./keys:/keys
command: |
-sish.addr=:22
-sish.https=:443
-sish.http=:80
-sish.httpsenabled=true
-sish.httpspems=/ssl
-sish.keysdir=/pubkeys
-sish.pkloc=/keys/ssh_key
-sish.bindrandom=false
network_mode: host
restart: always

0 comments on commit 1ff3dc1

Please sign in to comment.
You can’t perform that action at this time.