Pankod

Pankod

  • Docs
  • Github

›Overview

Introduction

  • Getting Started
  • What's included?

Overview

  • Setup
  • Example App
  • Structure
  • Deployment

Features

  • Testing
  • Swagger
  • ESLint
  • TypeORM

Project CLI

  • Overview
  • Usage
  • Migration Guide

Deployment

Build

Builds the app for production into the dist folder.

npm run build

Once you built the app, you can run microservices with;

npm run start

Docker

If you want to run the app with Docker, we already included docker-compose.yaml, docker-compose.env files and scripts to start and stop Docker deployment.

To start;

npm run dc:up

To stop;

npm run dc:down


We are using NATS for communication between microservices in Docker deployment.


docker-compose.yaml

version: "3.0"

services:

  api:
    build: .
    image: api
    env_file: docker-compose.env
    environment:
      SERVICES: api
      PORT: 3000
    ports:
      - "3000:3000"

  attack:
    build: .
    image: attack
    env_file: docker-compose.env
    environment:
      SERVICES: attack

  planet:
    build: .
    image: planet
    env_file: docker-compose.env
    environment:
      SERVICES: planet

  nats-server:
    image: nats:latest
    ports:
      - "4222:4222"

Refer to moleculer deployment documentation;

https://moleculer.services/docs/0.13/deploying.html

← StructureTesting →
  • Build
  • Docker
Pankod
Docs
Getting StartedExample AppFeaturesSetup
Community
Twitter
More
GitHubStar
Pankod Open Source
Copyright © 2019 pankod