# sandhole: Expose HTTP/SSH/TCP services through SSH port forwarding # Copyright (C) 2024-2026 Eric Rodrigues Pires # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for # more details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . services: sandhole-localhost: image: docker.io/epiceric/sandhole:main container_name: sandhole-localhost volumes: - ./deploy:/deploy:rw network_mode: host # Add your public key to ./deploy/admin_keys/ # # To expose a local HTTP service, run: # `ssh -p 12222 -R :80:localhost: localhost` # and access it at `http://.127-0-0-1.sslip.io:18000` # # To access the admin interface, run: # `ssh -t -p 12222 localhost admin` command: | --domain=127-0-0-1.sslip.io --user-keys-directory=/deploy/user_keys/ --admin-keys-directory=/deploy/admin_keys/ --certificates-directory=/deploy/certificates/ --acme-cache-directory=/deploy/acme_cache/ --private-key-file=/deploy/server_keys/ssh --ssh-port=12222 --http-port=18000 --disable-https --allow-requested-subdomains --allow-requested-ports --bind-hostnames=none --directory-poll-interval=5s