Composer rest server with mongo database and google OAuth2 support
287
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
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
Content type
Image
Digest
Size
101.5 MB
Last updated
over 8 years ago
docker pull mengluo668/composer-rest-server