-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (67 loc) · 1.69 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
networks:
net:
volumes:
rancher:
registry:
nginx-certs:
nginx-html:
nginx-vhost:
services:
registry:
image: registry:2
restart: unless-stopped
networks:
- net
volumes:
- registry:/var/lib/registry
- registry:/auth
- registry:/certs
- nginx-vhost:/etc/nginx/vhost.d:rw
environment:
VIRTUAL_HOST: r.secretpool.org
LETSENCRYPT_HOST: r.secretpool.org
LETSENCRYPT_EMAIL: [email protected]
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
nginx:
image: jwilder/nginx-proxy:latest
restart: unless-stopped
networks:
- net
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: 'true'
ports:
- '80:80'
- '443:443'
volumes:
- nginx-certs:/etc/nginx/certs:ro
- nginx-html:/usr/share/nginx/html
- nginx-vhost:/etc/nginx/vhost.d
- /var/run/docker.sock:/tmp/docker.sock:ro
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion:latest
restart: unless-stopped
networks:
- net
volumes:
- nginx-certs:/etc/nginx/certs:rw
- nginx-html:/usr/share/nginx/html:rw
- nginx-vhost:/etc/nginx/vhost.d:rw
- /var/run/docker.sock:/var/run/docker.sock:ro
server:
image: rancher/server:preview
restart: unless-stopped
networks:
- net
expose:
- '443/tcp'
environment:
VIRTUAL_PORT: 443
VIRTUAL_PROTO: https
VIRTUAL_HOST: rancher.secretpool.org
LETSENCRYPT_HOST: rancher.secretpool.org
LETSENCRYPT_EMAIL: [email protected]
volumes:
- rancher:/var/lib/mysql:rw