compose the basics

This commit is contained in:
nora 2022-09-03 21:03:33 +02:00
parent 99d5edbb94
commit c97168fe00
4 changed files with 62 additions and 3 deletions

17
docker/production.yml Normal file
View file

@ -0,0 +1,17 @@
version: '3.3'
services:
nginx:
volumes:
- "/etc/letsencrypt:/etc/nginx/certs:ro"
ports:
- "443:443"
registry:
volumes:
- "/etc/letsencrypt:/etc/letsencrypt"
- "/etc/htpasswd:/htpasswd"
environment:
- REGISTRY_HTTP_TLS_CERTIFICATE=/etc/letsencrypt/live/nilstrieb.dev/fullchain.pem
- REGISTRY_HTTP_TLS_KEY=/etc/letsencrypt/live/nilstrieb.dev/privkey.pem
- REGISTRY_AUTH=htpasswd
- REGISTRY_AUTH_HTPASSWD_REALM=Realm
- REGISTRY_AUTH_HTPASSWD_PATH=/htpasswd