forked from flaccid/docker-nfs-client
-
Notifications
You must be signed in to change notification settings - Fork 4
/
rancheros-cloud-config.yml
43 lines (37 loc) · 1.04 KB
/
rancheros-cloud-config.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
#cloud-config
# /var/lib/rancher/conf/cloud-config.d/nfs.yml
# https://github.com/rancher/os/issues/641
write_files:
- path: /etc/rc.local
permissions: "0755"
content: |
#!/bin/bash
[ ! -e /usr/bin/docker ] && ln -s /usr/bin/docker.dist /usr/bin/docker
rancher:
docker:
# This must be the name of the service that provides the storage. Docker will run this container.
storage_context: nfs
services:
nfs:
# no longer required in v0.4.0
# log_driver: json-file
# Your custom image
image: quantverse/docker-nfs-client
# Everything below is required to be set so that Docker can run properly
labels:
io.rancher.os.after: console,,wait-for-network
io.rancher.os.scope: system
net: host
pid: host
uts: host
ipc: host
privileged: true
restart: always
volumes_from:
- all-volumes
volumes:
- /usr/bin/iptables:/sbin/iptables:ro
- /mnt/nfs-1
environment:
SERVER: 192.168.0.9
SHARE: movies