HttPlaceholder
Quickly mock away any webservice using HttPlaceholder. HttPlaceholder lets you specify what the request should look like and what response needs to be returned.
Directory Structure
- .env
- docker-compose.yml
docker-compose.yml
version: '3.8'
services:
httplaceholder:
depends_on:
- postgres
image: dukeofharen/httplaceholder:latest
environment:
postgresConnectionString: 'Host=postgres,5432;Username=postgres;Password=postgres;Database=httplaceholder;SearchPath=public'
verbose: 'true'
ports:
- "5000:5000"
restart: on-failure
postgres:
image: postgres:16
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: httplaceholder
ports:
- "5432:5432"
volumes:
- ./postgres_data:/var/lib/postgresql/dataResources
Website: https://httplaceholder.org/
GitHub: https://github.com/dukeofharen/httplaceholder
Docker Hub: https://hub.docker.com/r/dukeofharen/httplaceholder
Configuration: https://github.com/dukeofharen/httplaceholder/blob/master/docs/docs.md#docker