Browse Source

add optional parameter `sftpd_network_mode`

Fabian Peter Hammerle 2 years ago
parent
commit
2b236c0a76
2 changed files with 2 additions and 0 deletions
  1. 1 0
      README.md
  2. 1 0
      tasks/main.yml

+ 1 - 0
README.md

@@ -17,6 +17,7 @@ sftpd_data_volume_name: sftpd_data
 
 ```yaml
 sftpd_container_image: docker.io/fphammerle/sftpd@sha256:2280b68c09554e2f521640566b0580590d006c4592ebd6899d3d72c8620cbbb8
+sftpd_network_mode: custom_network
 ```
 
 ## Returned Variables

+ 1 - 0
tasks/main.yml

@@ -17,6 +17,7 @@
       target: /home/nonroot/.ssh # authorized_keys
       tmpfs_size: 16k
       tmpfs_mode: '1777'
+    network_mode: '{{ sftpd_network_mode | default(omit) }}'
     published_ports: ['0.0.0.0:{{ sftpd_published_port }}:2200']
     cap_drop: [ALL]
     # ChrootDirectory