-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
61 lines (56 loc) · 1.55 KB
/
docker-compose.yaml
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
51
52
53
54
55
56
57
58
59
60
61
version: "3.3"
services:
registry-docker:
image: registry:2
container_name: registry-docker
restart: always
environment:
REGISTRY_PROXY_REMOTEURL: https://registry-1.docker.io
registry-k8s.gcr:
image: registry:2
container_name: registry-k8s.gcr
restart: always
environment:
REGISTRY_PROXY_REMOTEURL: https://k8s.gcr.io
registry-quay:
image: registry:2.5
container_name: registry-quay
restart: always
environment:
REGISTRY_PROXY_REMOTEURL: https://quay.io
registry-gcr:
image: registry:2
container_name: registry-gcr
restart: always
environment:
REGISTRY_PROXY_REMOTEURL: https://gcr.io
registry-ghcr:
image: registry:2
container_name: registry-ghcr
restart: always
environment:
REGISTRY_PROXY_REMOTEURL: https://ghcr.io
nginx:
image: nginx:stable-alpine
container_name: nginx
restart: always
depends_on:
- registry-docker
- registry-k8s.gcr
- registry-quay
- registry-gcr
- registry-ghcr
ports:
- 80:80
- 443:443
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/
- ./certbot/www:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
command: /bin/sh -c "sed 's/<DOMAIN>/$DOMAIN/g; s/<AUTH_BASIC>/$AUTH_BASIC/g' /etc/nginx/conf.d/$TYPE.conf.tmp > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
certbot:
image: certbot/certbot:latest
container_name: certbot
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw