|
Hi, I would like to configure copyparty in a docker container as an ftp server.
Can someony please post a working docker compose example, please? thanks, best regards |
Replies: 4 comments 2 replies
|
similar to how the http/https port is being forwarded, ports:
- 3923:3923i think you're supposed to add another Line with |
|
Hi, thanks for coming back to me so quickly! This seems to work. Sort of. You also have to expose the ftp-port itself like: from the compose.yaml:
and from my copyparty.conf:
Basically, I can log in, but the passive connection does not get established…
I have copyparty run as root in the container, because I have no users on my dockerhost… this way I can red/write to the mounted volumes… at least the web-interface is working this way and I can upload to the container… Any ideas? |
|
the same happens with a port-ramge 12000-12005 and also if each port os defined separately: `ports: ` |
|
sorry for the messy posts. Somehow, the editor is putting my code-entries into a single line… |
ah yes, good point that the ftp-port itself must be forwarded.
however I'm not getting the same issue you are when I try to connect; I instead get a complaint that I forgot to specify the
ftp-natoption. By settingftp-nat: 192.168.123.1(which is one of the IPs on this machine) and then connecting to 192.168.123.1 from filezilla, I am able to connect.do you have any firewalls (ufw, firewalld, or such)?
also, note that if you are willing to let the container use host network, then you can skip most of the complicating factors -- no need to forward the ports from the container, and no need to specify
ftp-nat-- however it means isolation between copyparty and host is slightly reduced, alt…