How to access Foundry data with sftp #1154
Replies: 3 comments
-
Something I forgot to mention in the feature description, I have a hogpiled implementation of an OpenSSH server set up currently for the containers I run. It does work, but along the way I ran into several issues in making it, if you wish to contact me for further information about these issues, feel free to contact me on GitHub or Discord at @arsonus. Thanks for reading, and thanks for an awesome image so that I didn't have to make one. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your feature request. While I understand the convenience of having an OpenSSH server inside the FoundryVTT container, this is not a good fit for the project for a few reasons:
That said, I think you can there's a simple and effective way to achieve the desired outcome while maintaining a clean containerized setup. Instead of modifying the FoundryVTT container, you can deploy a separate SFTP container that shares a volume with FoundryVTT. For example: ---
services:
foundry:
image: felddy/foundryvtt:12
hostname: my_foundry_host
volumes:
- type: bind
source: ./foundry_data
target: /data
environment:
- FOUNDRY_PASSWORD=<your_password>
- FOUNDRY_USERNAME=<your_username>
- FOUNDRY_ADMIN_KEY=atropos
ports:
- target: 30000
published: 30000
protocol: tcp
sftp:
image: atmoz/sftp:latest
container_name: sftp
volumes:
- type: bind
source: ./foundry_data
target: /home/foundryvtt
command: foundryvtt:password:1000
ports:
- target: 22
published: 2222
protocol: tcp
See: I haven't tested this out, but I think it'd work. Also, there are several Let me know if you think this solution would work for you. |
Beta Was this translation helpful? Give feedback.
-
That solution works great! Thanks! I'm still a little new to Docker in general so thank you for your in depth answer, learned something new today. Again your solution works great, just requires a little finicking with permissions and volumes to get it to work nicely |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature description
Integrate support directly in this docker image for an optional OpenSSH server to run with a specified and configurable user for use with SFTP Clients like FileZIlla and Cyberduck.
This would allow for several users, including myself, to use these programs to manage Foundry's User Data without the need for the Foundry in-built file manager (which is rather unideal for some situations) or an SSH shell, and allow users to easily upload, delete, and download data from the container without the use of commands like cp or rm, which can be quite cumbersome to use for those unfamiliar with Linux or Shells in general.
Motivation
I self-host several containers on an Ubuntu server within my apartment, and utilize this image for said containers. However, a consistent issue I continuously run into is File Management. This is a problem due to the following:
Example
As an example of how I imagine this feature being implemented optionally, here is a pseudo docker-compose.yml file:
Pitch
There is a good amount of reasons why implementing a native OpenSSH server would improve this project:
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions