Sign inSign up

mengluo668/composer-rest-server

By mengluo668

•Updated over 8 years ago

Composer rest server with mongo database and google OAuth2 support

Image
0

287

mengluo668/composer-rest-server repository overview

⁠How to

⁠Compose file
version: '3.3'
services:
  mongo:
    image: mongo
    ports:
      - 27017:27017
    restart: always
  rest:
    image: mengluo668/composer-rest-server
    environment:
      COMPOSER_CARD: admin@dianyou-share-biznet
      COMPOSER_NAMESPACES: never
      COMPOSER_AUTHENTICATION: 'true'
      COMPOSER_MULTIUSER: 'true'
      COMPOSER_PROVIDERS: '{ "google": { "provider": "google", "module": "passport-google-oauth2", "clientID": "your-client-id", "clientSecret": "your-client-secret", "authPath": "/auth/google", "callbackURL": "/auth/google/callback", "scope": "https://www.googleapis.com/auth/plus.login", "successRedirect": "/", "failureRedirect": "/" } }'
      COMPOSER_DATASOURCES: '{ "db": { "name": "db", "connector": "mongodb", "host": "mongo" } }'
    volumes:
      - ~/.composer:/home/composer/.composer
    ports:
      - 3000:3000
    restart: always

Note: Please remember to replace the your-client-id and your-client-secret with your correct id/secret

⁠Command

export COMPOSE_PROJECT_NAME=composer docker-compose up -d

Note: export COMPOSE_PROJECT_NAME is optional, it is depends on you Fabric compose network. you should to make the containers has a same network to your Fabric containers

Tag summary

Content type

Image

Digest

Size

101.5 MB

Last updated

over 8 years ago

docker pull mengluo668/composer-rest-server