30 lines
687 B
Text
30 lines
687 B
Text
|
[Unit]
|
||
|
Description = SFTP Server
|
||
|
|
||
|
Wants=sftp_init_keys.service
|
||
|
After=sftp_init_keys.service
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
Wants=dhcp_config_init.service
|
||
|
After=dhcp_config_init.service
|
||
|
Wants=ign_files_init.service
|
||
|
After=ign_files_init.service
|
||
|
|
||
|
[Container]
|
||
|
ContainerName = sftp
|
||
|
Image = localhost/sftp:latest
|
||
|
PublishPort=${external_port}:${internal_port}
|
||
|
Volume = dhcp_config.volume:/data/dhcp_config:z
|
||
|
Volume = ign_files.volume:/data/ign_files:z
|
||
|
Volume = ssh_keys.volume:/data/ssh_keys:z
|
||
|
Volume = /dev/log:/dev/log
|
||
|
|
||
|
[Service]
|
||
|
WorkingDirectory=/var/roothome/sftp
|
||
|
ExecStartPre=podman build -t sftp:latest .
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|