Thanks for your reply @araujo .
Indeed, the documentation explain well how to set it up. I just was wondering how to do it with docker-compose (i just recently introduce that technology).
I only had to change the docker-compose.yml and adding the listening ftp port to the ports line :
nifi:
image: apache/nifi:latest
ports:
- "8443:8443"
- "2221:2221" <---- here
volumes:
- /home/user/nifi/datafiles:/data
- /home/user/local-nifi:/local-data
environment:
- SINGLE_USER_CREDENTIALS_PASSWORD=
- SINGLE_USER_CREDENTIALS_USERNAME=
Then i connected to it via FileZilla through `ftp://localhost` `port: 2221` and was able to transfer files.