Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nickpreston24/3ed88be8600ff7b8b0175af48be15de9 to your computer and use it in GitHub Desktop.

Select an option

Save nickpreston24/3ed88be8600ff7b8b0175af48be15de9 to your computer and use it in GitHub Desktop.

Revisions

  1. Josh Fabean revised this gist Oct 23, 2019. 1 changed file with 36 additions and 0 deletions.
    36 changes: 36 additions & 0 deletions docker-compose.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    version: '2'
    services:
    nginx-proxy:
    container_name: nginx-proxy
    image: jwilder/nginx-proxy:alpine
    ports:
    - "80:80"
    - "443:443"
    volumes:
    - /var/run/docker.sock:/tmp/docker.sock:ro
    - ./letsencrypt/certs:/etc/nginx/certs
    - /etc/nginx/vhost.d
    - /usr/share/nginx/html
    letsencrypt:
    image: jrcs/letsencrypt-nginx-proxy-companion
    container_name: letsencrypt
    volumes_from:
    - nginx-proxy
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - ./letsencrypt/certs:/etc/nginx/certs:rw
    wiki:
    container_name: wiki
    image: ericbarch/dockuwiki
    environment:
    - SSH_PORT=22
    - SSH_DOMAIN=git.joshfabean.com
    - REMOTE_URL=git@git.joshfabean.com:fabean/Wiki.git
    - VIRTUAL_HOST=mycoolwiki.joshfabean.com
    - VIRTUAL_PORT=3000
    - LETSENCRYPT_HOST=mycoolwiki.joshfabean.com
    ports:
    - "3000"
    expose:
    - "3000"
    restart: always
  2. Josh Fabean revised this gist Oct 23, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions docker-compose-dockuwiki.yaml
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,9 @@ wiki:
    - SSH_PORT=22
    - SSH_DOMAIN=github.com
    - REMOTE_URL=git@github.com:fabean/wiki.git
    - VIRTUAL_HOST=mycoolwiki.com
    - VIRTUAL_HOST=mycoolwiki.joshfabean.com
    - VIRTUAL_PORT=3000
    - LETSENCRYPT_HOST=mycoolwiki.com
    - LETSENCRYPT_HOST=mycoolwiki.joshfabean.com
    ports:
    - "3000"
    restart: always
  3. Josh Fabean revised this gist Oct 23, 2019. 2 changed files with 13 additions and 0 deletions.
    File renamed without changes.
    13 changes: 13 additions & 0 deletions docker-compose-dockuwiki.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    wiki:
    container_name: wiki
    image: ericbarch/dockuwiki
    environment:
    - SSH_PORT=22
    - SSH_DOMAIN=github.com
    - REMOTE_URL=git@github.com:fabean/wiki.git
    - VIRTUAL_HOST=mycoolwiki.com
    - VIRTUAL_PORT=3000
    - LETSENCRYPT_HOST=mycoolwiki.com
    ports:
    - "3000"
    restart: always
  4. Josh Fabean revised this gist Oct 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion docker-compose.yaml
    Original file line number Diff line number Diff line change
    @@ -18,4 +18,4 @@ services:
    - nginx-proxy
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - .letsencrypt/certs:/etc/nginx/certs:rw
    - ./letsencrypt/certs:/etc/nginx/certs:rw
  5. Josh Fabean created this gist Oct 23, 2019.
    21 changes: 21 additions & 0 deletions docker-compose.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    version: '2'
    services:
    nginx-proxy:
    container_name: nginx-proxy
    image: jwilder/nginx-proxy:alpine
    ports:
    - "80:80"
    - "443:443"
    volumes:
    - /var/run/docker.sock:/tmp/docker.sock:ro
    - ./letsencrypt/certs:/etc/nginx/certs
    - /etc/nginx/vhost.d
    - /usr/share/nginx/html
    letsencrypt:
    image: jrcs/letsencrypt-nginx-proxy-companion
    container_name: letsencrypt
    volumes_from:
    - nginx-proxy
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - .letsencrypt/certs:/etc/nginx/certs:rw