Skip to content
Indexer for various sources (WIP)
TypeScript Dockerfile
Branch: master
Clone or download
Latest commit 4463581 Oct 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src add unit mongodb test (#17) Oct 14, 2019
.dockerignore
.editorconfig first commit Jan 13, 2019
.gitignore first commit Jan 13, 2019
Dockerfile exclude dist Sep 22, 2019
README.md add unit mongodb test (#17) Oct 14, 2019
docker-compose.yml support mongo db (#16) Oct 12, 2019
package.json support mongo db (#16) Oct 12, 2019
tsconfig.json first commit Jan 13, 2019
tslint.json first commit Jan 13, 2019
yarn.lock support mongo db (#16) Oct 12, 2019

README.md

Indexer for Albireo

requirements: Postgres >= 9.5

Indexer can be configured to different modes: dmhy, Bangumi.moe Database can be configured two modes: postgres, mongo

Set environment variables

  • INDEXER_MODE what mode this indexer will work at. set dmhy or bangumi_moe
  • DB_MODE for databse instance, default is mongo, you can select postgres
  • DB_HOST host for database instance, default is mongo
  • DB_PORT port for database, default is 27017
  • DB_USER user for database access, default is admin
  • DB_NAME database name, default is dmhy_indexer
  • DB_PASS password for postgres access, default is 123456

Start from docker

Setup Requirements

Boot up

You can start container by:

  • Start all service defined in docker-compose.yml using docker-compose up
$ docker-compose up --build

To run it in background (detached mode), just add -d option

$ docker-compose up --build -d
  • Run main container in bash mode
$ docker-compose start pg
$ docker-compose run --no-deps --rm --service-ports main bash
node@add8121dc7c5:/irohalab/indexer$ npm run start
You can’t perform that action at this time.