-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh
107 lines (81 loc) · 3.32 KB
/
config.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/bin/bash
source ./env.sh
#######################################
## Docker
#######################################
### Network
DOCKER_NETWORK_NAME="${DOCKER_NETWORK_NAME:-central}"
### Volumes
DOCKER_VOLUME_NAME_API="${DOCKER_VOLUME_NAME_API:-central-api}"
DOCKER_VOLUME_NAME_TRAIN_MANAGER="${DOCKER_VOLUME_NAME_TRAIN_MANAGER:-central-train-manager}"
DOCKER_VOLUME_AUTHUP_NAME="${DOCKER_VOLUME_AUTHUP_NAME:-central-auth}"
DOCKER_VOLUME_DB_NAME="${DOCKER_VOLUME_DB_NAME:-central-db}"
DOCKER_VOLUME_MQ_NAME="${DOCKER_VOLUME_MQ_NAME:-central-mq}"
DOCKER_VOLUME_MINIO_NAME="${DOCKER_VOLUME_MINIO_NAME:-central-minio}"
DOCKER_VOLUME_REDIS_NAME="${DOCKER_VOLUME_REDIS_NAME:-central-redis}"
DOCKER_VOLUME_VAULT_NAME="${DOCKER_VOLUME_VAULT_NAME:-central-vault}"
### Names
DOCKER_NAME_UI="${DOCKER_NAME_UI:-central-ui}"
DOCKER_NAME_API="${DOCKER_NAME_API:-central-api}"
DOCKER_NAME_REALTIME="${DOCKER_NAME_REALTIME:-central-realtime}"
DOCKER_NAME_TRAIN_MANAGER="${DOCKER_NAME_TRAIN_MANAGER:-central-train-manager}"
DOCKER_NAME_AUTHUP="${DOCKER_NAME_AUTHUP:-central-auth}"
DOCKER_NAME_DB="${DOCKER_NAME_DB:-central-db}"
DOCKER_NAME_MQ="${DOCKER_NAME_MQ:-central-mq}"
DOCKER_NAME_MINIO="${DOCKER_NAME_MINIO:-central-minio}"
DOCKER_NAME_REDIS="${DOCKER_NAME_REDIS:-central-redis}"
DOCKER_NAME_VAULT="${DOCKER_NAME_VAULT:-central-vault}"
### Path
DOCKER_CONTAINER_PROJECT_PATH="${DOCKER_CONTAINER_PROJECT_PATH:-"/usr/src/project"}"
## Image
DOCKER_IMAGE_TAG="${DOCKER_IMAGE_TAG:-latest}"
#######################################
## Authup Service
#######################################
AUTHUP_ENABLED="${AUTHUP_ENABLED:-true}"
AUTHUP_PORTS_EXPOSED="${AUTHUP_PORTS_EXPOSED:-true}"
AUTHUP_VERSION="${AUTHUP_VERSION:-"latest"}"
#######################################
## DB Service
#######################################
DB_ENABLED="${DB_ENABLED:-false}"
DB_PORTS_EXPOSED="${DB_PORTS_EXPOSED:-false}"
DB_VERSION="${DB_VERSION:-"5.7"}"
DB_USER_PASSWORD="${DB_USER_PASSWORD:-start123}"
#######################################
## MQ Service
#######################################
MQ_ENABLED="${MQ_ENABLED:-false}"
MQ_PORTS_EXPOSED="${MQ_PORTS_EXPOSED:-false}"
MQ_VERSION="${MQ_VERSION:-"latest"}"
MQ_USER_NAME="${MQ_USER_NAME:-admin}"
MQ_USER_PASSWORD="${MQ_USER_PASSWORD:-start123}"
#######################################
## Minio Service
#######################################
MINIO_ENABLED="${MINIO_ENABLED:-false}"
MINIO_PORTS_EXPOSED="${MINIO_PORTS_EXPOSED:-false}"
MINIO_VERSION="${MINIO_VERSION:-"latest"}"
#######################################
## Redis Service
#######################################
REDIS_ENABLED="${REDIS_ENABLED:-false}"
REDIS_PORTS_EXPOSED="${REDIS_PORTS_EXPOSED:-false}"
REDIS_VERSION="${REDIS_VERSION:-"latest"}"
#######################################
## VAULT Service
#######################################
VAULT_ENABLED="${VAULT_ENABLED:-false}"
VAULT_PORTS_EXPOSED="${VAULT_PORTS_EXPOSED:-false}"
VAULT_VERSION="${VAULT_VERSION:-"1.12.0"}"
#######################################
## Project
#######################################
ENABLED_UI="${ENABLED_UI:-true}"
UI_PORT="${UI_PORT:-3000}"
ENABLED_REALTIME="${ENABLED_REALTIME:-true}"
PORT_REALTIME="${PORT_REALTIME:-3001}"
ENABLED_API="${ENABLED_API:-true}"
PORT_API="${PORT_API:-3002}"
ENABLED_TRAIN_MANAGER="${ENABLED_TRAIN_MANAGER:-true}"
PORT_TRAIN_MANAGER="${PORT_TRAIN_MANAGER:-3003}"