Skip to content

Instantly share code, notes, and snippets.

@qzm
Created May 12, 2020 09:51
Show Gist options
  • Save qzm/e6832be4f18786e29bd7ecb4931cc674 to your computer and use it in GitHub Desktop.
Save qzm/e6832be4f18786e29bd7ecb4931cc674 to your computer and use it in GitHub Desktop.
kodexplorer
version: '2'
services:
kodexplorer:
image: 'baiyuetribe/kodexplorer'
restart: always
environment:
- DEFAULT_EMAIL=mail@example.com
- VIRTUAL_HOST=cloud.domain.com
- VIRTUAL_PORT=80
- SERVER_PROXY_NAME=cloud.domain.com
- SERVER_PROXY_PORT=443
- SERVER_SCHEME=https
- LETSENCRYPT_HOST=cloud.domain.com
- LETSENCRYPT_EMAIL=mail@example.com
volumes:
- /mnt/kodexplorer/data/Group:/var/www/html/data/Group
- /mnt/kodexplorer/data/User:/var/www/html/data/User
watchtower:
image: v2tec/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --schedule "0 4 * * *"
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- conf:/etc/nginx/conf.d
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- dhparam:/etc/nginx/dhparam
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: nginx-proxy-le
restart: always
environment:
- DEFAULT_EMAIL=mail@example.com
volumes_from:
- nginx-proxy
volumes:
- certs:/etc/nginx/certs:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
conf:
vhost:
html:
dhparam:
certs:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment