Textnow mocking shop API is a lightweight application that provides services to the Textnow mocking shop application. It's dockerized and comes with Swagger documentation.
This is a dockerized application. So, be sure that you installed Docker in your machine.
Now that you have Docker installed, you need to build a docker-compose.yml file with the following content:
version: "3"
volumes:
dados_pg:
services:
database:
image: postgres:12.1-alpine
environment:
POSTGRES_USER: textnow
POSTGRES_PASSWORD: textnowpwd
POSTGRES_DB: textnow
volumes:
- dados_pg:/var/lib/postgresql/data
expose:
- 5432
api:
image: prsales/textnow-mocking-shop-api:latest
environment:
DB_HOST: database
DB_PORT: 5432
DB_NAME: textnow
DB_USER: textnow
DB_PASS: textnowpwd
APP_ALLOWED_ORIGINS: http://localhost:3000
ports:
- 8080:8080
depends_on:
- database
Now just type the command below to raise the API application.
docker-composer up -d
Content type
Image
Digest
Size
110.5 MB
Last updated
over 6 years ago
docker pull prsales/textnow-mocking-shop-api