Public | Automated Build

Last pushed: 8 months ago
Short Description
apiman-postgres
Full Description

=apiman-docker=


1. Prerequisites

2. Installation

Edit docker-compose.yml according to your needs:

db:
    image: postgres
    environment:
        - POSTGRES_DB=ApiManagerDS
        - POSTGRES_USER=apiman
        - POSTGRES_PASSWORD=apiman
        - POSTGRES_ROOT_PASSWORD=apiman

elastic:
    image: elasticsearch

apiman:
    image: jboss/apiman-wildfly-admin
    environment:
        - GATEWAY_ADDRESS=https://{your_host}/apiman-gateway
    links:
        - db:postgres
        - elastic:es
    ports:
        - "8089:8080"
        - "9999:9990"
        - "443:443"
        - "8787:8787"
 $ ./ssl.sh {your_host}
 $ ./build.sh
 $ ./run.sh

This will:

  • Generate a self-signed ssl certificate and deploy it to the java keystore (see ssl.sh for more details)
  • Build the docker image
  • Run postgres, elastic search and apiman using docker-compose

3. Run

  • Go to Apiman UI:
    https://{your_host}/apimanui
    
  • Login using apiman/apiman123!
  • Go to Manage Gateways -> New Gateway

    Configuration Endpoint: http://localhost:8080/apiman-gateway-api/
    Username: apimanager
    Password: apiman123!
    
  • Import policies. Go to System Administration -> Manage Policy Definitionsand use this json
  • Add admin role. Click on Manage Roles/Permissions and then New role.
  • Create new Organization
  • Create new Plan
  • Create new Service
  • Create new Application

The API service will be available at:

https://{your_host}/apiman-gateway/{Organization}/{Service}/{version}?apikey={X-API-Key}

For local testing change {your_host} to localhost

Docker Pull Command
Owner
webalexx
Source Repository