-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrancher-docker-compose
46 lines (38 loc) · 1.09 KB
/
rancher-docker-compose
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
###Install by docker run
docker run -d --restart=unless-stopped \
-p 80:80 -p 443:443 \
-v /opt/rancher:/var/lib/rancher \
--privileged \
rancher/rancher:v2.6.8
###Install by docker-compose
docker-compose.yml
version: '3.3'
services:
rancher:
restart: unless-stopped
privileged: true
ports:
- '80:80'
- '443:443'
volumes:
- '/opt/rancher:/var/lib/rancher'
image: 'rancher/rancher:v2.6.8'
###Install by docker-compose With SSL Certificate
version: '3.3'
services:
rancher:
restart: unless-stopped
privileged: true
container_name: rancher
ports:
- '80:80'
- '443:443'
environment:
- AUDIT_LEVEL=1
volumes:
- '/opt/rancher:/var/lib/rancher'
- '/var/log/rancher/auditlog:/var/log/auditlog'
- '/opt/rancher/ssl/cacerts.pem:/etc/rancher/ssl/cacerts.pem'
- '/opt/rancher/ssl/key.pem:/etc/rancher/ssl/key.pem'
- '/opt/rancher/ssl/cert.pem:/etc/rancher/ssl/cert.pem'
image: 'rancher/rancher:v2.6.8'