General use RestPS PowerShell Container for x64 platforms. RestPS is a awesome super easy to use PowerShell Module. I made a container out of it.
RestPS is not build by me please check out the original Repo on Github: https://github.com/jpsider/RestPS don't forget to leave a Star
RestPS is easy and learned within 2 minutes but you have to check it out first.
You can start the container with just Port 80 exposed and try to access either /endpoint/status (which will return a 1) or /proc (which will return all running processes in the container, long ugly JSON List) to get your first response
version: "3"
services:
restps:
image: nopenix/restps:latest
restart: unless-stopped
ports:
- 80:80
volumes:
- /path/to/your/endpoints.json:/app/endpoints.json # mounting endpoints file
#- /path/to/a/powershell-script.ps1:/app/script.ps1 # do not forget to mount your Scripts!
environment:
port: 80
path_to_endpoints_json_file: /app/endpoints.json # using the in the volumes block previous mounted endpoints file
Variable | Effect |
---|---|
port | Specify the Port RestPS should listen on |
path_to_endpoints_json_file | Path to the JSON Endpoints definition file |