-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
50 lines (50 loc) · 1.36 KB
/
docker-compose.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '2.1'
services:
nginx:
image: nginx:1.15-alpine
ports:
- 80:80
- 443:443
volumes:
- ./conf/nginx:/etc/nginx/conf.d
- ./data/certs:/certs
- ./conf/auth:/auth
restart: always
environment:
- DOMAIN={DOCKER_REGISTRY_DOMAIN_NAME}
command: "sh -c '/usr/sbin/nginx && nc -v -l -p 12345 -e nginx -s reload'"
certbot:
build:
context: certbot
dockerfile: Dockerfile
container_name: certbot
ports:
- 81:80
volumes:
- ./data/certs:/certs
- ./data/certbot/letsencrypt:/etc/letsencrypt
- ./data/certbot/var_log_letsencrypt:/var/log/letsencrypt
environment:
- LOGFILE=/var/log/letsencrypt/certrenewal.log
- DEBUG=false
- STAGING=true
- HEALTH_CHECK_URL=${DOCKER_REGISTRY_DOMAIN_NAME}:80
- DOMAINS=${DOCKER_REGISTRY_DOMAIN_NAME}
- EMAIL=${DOCKER_REGISTRY_CERT_EMAIL_ADDRESS}
- RENEWED_CERTS_HOOK=echo "1" | nc nginx 12345
registry:
image: registry:2
ports:
- 127.0.0.1:5000:5000
volumes:
- ./data/registry:/var/lib/registry
restart: always
registryui:
image: konradkleine/docker-registry-frontend:v2
ports:
- 444:443
environment:
- ENV_DOCKER_REGISTRY_HOST=${DOCKER_REGISTRY_DOMAIN_NAME}
- ENV_DOCKER_REGISTRY_PORT=443
- ENV_DOCKER_REGISTRY_USE_SSL=1
restart: always