-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
34 lines (32 loc) · 922 Bytes
/
Copy pathcompose.yml
File metadata and controls
34 lines (32 loc) · 922 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
34
version: "3.9"
services:
rancher:
image: rancher/rancher:stable
container_name: rancher
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /srv/rancher:/var/lib/rancher
networks:
- caddy
privileged: true
user: root
environment:
CATTLE_SYSTEM_CATALOG: bundled
# labels:
# caddy: rancher.marcpartensky.com
# caddy.reverse_proxy: "{{upstreams 8080}}"
# traefik.enable: "true"
# traefik.http.routers.rancher.rule: Host(`rancher.marcpartensky.com`)
# traefik.http.routers.rancher.entrypoints: web
# # traefik.http.routers.rancher.tls.certresolver: tls
# traefik.http.services.rancher.loadbalancer.server.port: 80
# user: root
# deploy:
# resources:
# limits:
# cpus: '4'
# memory: 5000M
networks:
caddy:
external: true