-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-authorizer.yml
29 lines (29 loc) · 1.15 KB
/
docker-compose-authorizer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: '3.6'
services:
authorizer:
# image: ghcr.io/aura-nw/authorizer:0.1.22.4
image: quochai194/authorizer:0.1.23
# image: lakhansamani/authorizer:1.1.50
restart: always
ports:
- '8090:8090'
deploy:
mode: replicated
replicas: 1
endpoint_mode: vip
environment:
ENV: production
DATABASE_TYPE: postgres
DATABASE_URL: postgres://postgres:pkmrmf9Rh4GPaXMx@postgres:5432/postgres
ADMIN_SECRET: BtfpvmBDJ8b3SGsw
ORGANIZATION_NAME: AuraNetwork
ORGANIZATION_LOGO: 'https://aura-explorer-assets.s3.ap-southeast-1.amazonaws.com/aura.png'
ROLES: user,creator,admin
DEFAULT_ROLES: user
PROTECTED_ROLES: creator,admin
ACCESS_TOKEN_EXPIRY_TIME: 3h
CUSTOM_ACCESS_TOKEN_SCRIPT: function(user,tokenPayload) {var data = tokenPayload; data['https://hasura.io/jwt/claims'] = {'x-hasura-user-id':user.id,'x-hasura-default-role':tokenPayload.allowed_roles[0], 'x-hasura-allowed-roles':user.roles, 'x-hasura-user-email':user.email }; return data;}
ZALO_APP_ID: 2318977898294005000
ZALO_APP_SECRET: JmS4L81B99c5cp2sbnSw
PORT: 8090
LOG_LEVEL: debug