Sign inSign up

wellwelwel/vps

By wellwelwel

•Updated 11 months ago

☘️ A no-cost option to develop and test using a local VPS

Image
0

6.2K

wellwelwel/vps repository overview

See: https://github.com/wellwelwel/local-vps-and-ec2⁠


⁠Local Ubuntu VPS and EC2 ☘️

A Docker image based on VPS and EC2 and a totally no-cost option to develop and test using a local server.


⁠Pull

docker pull wellwelwel/vps:latest
  • Also: 18.04, 20.04, 22.04, 23.04 and 23.10.

⁠Run

docker run --privileged -p 22:22 --restart always wellwelwel/vps:latest
  • Default root password is root
  • Default port is 22
  • --privileged option is required to use sudo commands

⁠Compose

version: '3.9'
services:
  vps:
    image: 'wellwelwel/vps:latest'
    privileged: true
    restart: always
    ports:
      - '22:22'
  • Default root password is root
  • Default port is 22

⁠Accessing
  • Default root password is root

⁠Customizing

⁠You can personalize the port and password:
version: '3.9'
services:
  vps:
    image: 'wellwelwel/vps:latest'
    privileged: true
    restart: always
    ports:
      - '2222:2222'
    environment:
      PASSWORD: password
      PORT: 2222

You can also set a password using a file:

version: '3.9'
services:
  vps:
    image: 'wellwelwel/vps:latest'
    privileged: true
    restart: always
    ports:
      - '22:22'
    volumes:
      - ./.secret:/root/.secret:ro
  • Securely set the password in a volume to file /root/.secret with sudo chmod 0400

It's an image created for SVPS Project⁠ 🧙🏻

Tag summary

Content type

Image

Digest

sha256:d54f63547…

Size

141.5 MB

Last updated

11 months ago

docker pull wellwelwel/vps