This provides a bastion environment for projects running within ComputeStacks.
The will:
- Install any ssh keys linked to the project and/or users.
- Mount volumes for other services within the project
- Provide ssh, sftp, and mosh access
- Provide developer tools such as: git, rsync, wp-cli, compose, yarn, npm, mysql-cli, postgres-cli.
Built on Debian Trixie using Ondřej Surý's PHP packaging — the same packaging family as the ComputeStacks php/wordpress images, so wp and composer behave the same here as in the customer app.
PHP 8.2, 8.3, 8.4, and 8.5 are installed side-by-side. Each is callable explicitly as php8.2 … php8.5. The bare php (and therefore wp/composer, which call /usr/bin/php) defaults to 8.3 but is auto-selected at boot to match the project's PHP version from the metadata service (WordPress services take priority; versions outside 8.2–8.5 fall back to/clamp into that range). An admin can re-run select_php_version or use update-alternatives --set php /usr/bin/php8.X to change the default.
Note: This makes use of the metadata service provided by ComputeStacks. Not all features may work in your environment.
Based on source code and ideas from: atmoz/sftp
If you encounter a technical issue, you may open an issue. However, for questions or how-to's, please post on our forum.
Contributions are welcome! Before you submit a pull request, feel free to post on our forum your idea and we can have a discussion.