Allows other docker containers to connect to SSTP network.
docker-compose.yml
version: '3'
services:
sstpc:
container_name: sstpc
image: "tiomny/docker-sstp-client"
restart: unless-stopped
cap_add:
- NET_ADMIN
privileged: true
ports:
- <port>:<port>
environment:
REMOTEHOST: ${REMOTEHOST}
USER: ${USER}
PASSWORD: ${PASSWORD}
MODPROBE: ppp_generic
container_to_connect_sstp_network:
image: xxx/xxx
restart: unless-stopped
network_mode: "service:sstpc"
where <port> - port to share from container_to_connect_sstp_network
.
run
USER="xxx" PASSWORD="xxx" REMOTEHOST="xxx" docker compose up -d
docker run \
-d \
-it \
--privileged \
--cap-add=NET_ADMIN \
-p <port>:<port> \
-e REMOTEHOST: <REMOTEHOST> \
-e USER: <USER> \
-e PASSWORD: <PASSWORD> \
tiomny/docker-sstp-client