-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 824 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
version: '2'
services:
registry:
restart: always
image: registry:2
ports:
- 5000:5000
environment:
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/live/<your_domain>/fullchain.pem
REGISTRY_HTTP_TLS_KEY: /certs/live/<your_domain>/privkey.pem
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
volumes:
- ./registry:/var/lib/registry
- ./letsencrypt/:/certs
- ./auth:/auth
lets-nginx:
image: smashwilson/lets-nginx
restart: always
volumes:
- "./cache:/cache"
- "./letsencrypt:/etc/letsencrypt"
links:
- registry
environment:
EMAIL: "<your_email>"
DOMAIN: "<your_domain>"
UPSTREAM: "registry:80"
ports:
- "80:80"
- "443:443"