Skip to content

Instantly share code, notes, and snippets.

@MaienM
Created March 13, 2017 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaienM/f968ad0737cc5f4ade7b106319b0d2df to your computer and use it in GitHub Desktop.
Save MaienM/f968ad0737cc5f4ade7b106319b0d2df to your computer and use it in GitHub Desktop.
version: '2'
# echo 'client_max_body_size 0;' | sudo tee /srv/nginx/vhost.d/docker.waxd.nl_location
# docker run --rm -it --entrypoint htpasswd registry:2 -n <username> | grep -vi password | sudo tee -a /srv/nginx/htpasswd/docker.waxd.nl
services:
registry:
restart: unless-stopped
image: registry
volumes:
- /srv/registry:/var/lib/registry
environment:
VIRTUAL_HOST: docker.waxd.nl
LETSENCRYPT_HOST: docker.waxd.nl
LETSENCRYPT_EMAIL: michon1992@gmail.com
networks:
- proxy
networks:
proxy:
external:
name: proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment