Sign inSign up

desholmes/webapp-rpc

By desholmes

Updated over 5 years ago

A lightweight web app project to test an RPC endpoint

Image
0

173

desholmes/webapp-rpc repository overview

Docker Compose

Create the following docker-compose.yml to include webapp and api:

version: '3.7'

services:
  webapp:
    image: desholmes/webapp-rpc:0.1.0
    ports:
      - 3000:3000
    environment:
      - PORT=3000
    depends_on:
      - api
  api:
    image: desholmes/api-rpc:0.1.0
    ports:
      - 5000:5000
    environment:
      - PORT=5000

Run docker-compose up

Success:

  1. Visit localhost:3000 in a browser
  2. Enter http://localhost:5000 into the Entrypoint field
  3. Press Test
  4. Note: You receive a Success result

Fail:

  1. Visit localhost:3000 in a browser
  2. Enter https://bbc.co.uk into the Entrypoint field
  3. Press Test
  4. Note: You receive an Error result

Tag summary

Content type

Image

Digest

Size

40.4 MB

Last updated

over 5 years ago

docker pull desholmes/webapp-rpc:0.1.0