Closed deepbluemussel closed 9 months ago
In some cases, you may need to mount a file volume (for example, if you want to mount a docker socket). With this PR, all you need to do is enter the state in the list of volumes in the nomad_host_volumesvariable. The default value is directory.
state
nomad_host_volumes
directory
Example:
nomad_host_volumes: - name: docker-sock-ro path: /run/docker.sock state: file read_only: true - name: postgres-myapp path: /volumes/nomad/postgres/myapp owner: nobody group: nogroup mode: "0755" read_only: false
LGTM.
Can you expand the example in the readme with the state?
@rndmh3ro You're right. It's done ✅
In some cases, you may need to mount a file volume (for example, if you want to mount a docker socket). With this PR, all you need to do is enter the
state
in the list of volumes in thenomad_host_volumes
variable. The default value isdirectory
.Example: