Skip to content

Instantly share code, notes, and snippets.

@rtang03
Created May 14, 2020 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtang03/a81de508ffbbc104e2c264c934ddb78d to your computer and use it in GitHub Desktop.
Save rtang03/a81de508ffbbc104e2c264c934ddb78d to your computer and use it in GitHub Desktop.
troubleshooting
version: '2'
networks:
openplatform:
services:
auth:
image: fabric-es/auth-server:1.0
container_name: auth
environment:
- PORT=8080
- TYPEORM_HOST=postgres
- TYPEORM_USERNAME=postgres
- TYPEORM_PASSWORD=docker
- TYPEORM_DATABASE=auth_db
- TYPEORM_PORT=5432
- REDIS_HOST=redis
- REDIS_PORT=6379
- JWT_SECRET=secret
- JWT_EXP_IN_SECOND=3600
- ORG_ADMIN_ID=admin-org1.net
- ORG_ADMIN_SECRET=admin-org1.netPW
- ORG_ADMIN_EMAIL=admin@org.net
- CLIENT_APPLICATION_NAME=root_client
- CLIENT_SECRET=password
depends_on:
- redis
- postgres
networks:
- openplatform
version: '2'
networks:
openplatform:
services:
gw-org1:
image: fabric-es/gw-org1:0.6.2
container_name: gw-org1
environment:
- AUTHORIZATION_SERVER_URI=http://auth:8080/oauth/authenticate
- CA_ENROLLMENT_ID_ADMIN=rca-org1-admin
- CA_ENROLLMENT_SECRET_ADMIN=rca-org1-adminPW
- CONNECTION_PROFILE=/home/app/packages/gw-org1/connection/connection-org1.docker.yaml
- ORG_ADMIN_ID=admin-org1.net
- ORG_ADMIN_SECRET=admin-org1.netPW
- ORG_CA_URL=https://rca-org1:5054
- GATEWAY_HOST=gw-org1
- GATEWAY_PORT=4001
- TEMP_REMOTE_URI=http://gw-org2:4001/graphql\ http://gw-org3:4001/graphql
working_dir: /home/app/packages/gw-org1
ports:
- 4001:4001
networks:
- openplatform
depends_on:
- auth
- orderer0-org0
- peer0-org1
volumes:
- $VOLUME/gw-org1/assets/:/home/app/packages/gw-org1/assets/
- $VOLUME/gw-org1/logs/:/home/app/packages/gw-org1/logs/
- $ARTIFACTS/crypto-config/:/var/artifacts/crypto-config/
version: '2'
networks:
openplatform:
services:
postgres:
container_name: postgres
image: postgres:9.6.17-alpine
environment:
- POSTGRES_PASSWORD=docker
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
volumes:
- ./scripts/createdb.sql:/docker-entrypoint-initdb.d/1-createdb.sql
command: postgres
ports:
- 5432:5432
networks:
- openplatform
redis:
container_name: redis
image: redis:5.0.9-alpine
volumes:
- ./volume/redis-data:/data
# custom configuration. will require if AUTH is set
# - ./volume/redis.conf:/usr/local/etc/redis/redis.conf
ports:
- 6379:6379
networks:
- openplatform
proxy:
image: fabric-es/proxy:1.0
container_name: proxy
environment:
- HOST=0.0.0.0
- PORT=8080
- AUTH_HOST=http://auth:8080
- APP_HOST=http://ui-account:3000
- GW_ORG_HOST=http://gw-org1:4001
ports:
- 8080:8080
networks:
- openplatform
version: '2'
networks:
openplatform:
services:
ui-account:
image: fabric-es/ui-account:1.0
container_name: ui-account
environment:
- PORT=3000
- AUTH_HOST=http://auth:8080
- GW_ORG_HOST=http://gw-org1:4001
depends_on:
- auth
networks:
- openplatform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment