Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mbk-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MBK_Workshop
mbk-framework
Commits
9d586f0e
Commit
9d586f0e
authored
Aug 13, 2024
by
Mohd Al Bukhori bin Zahari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
bc0ee75b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
370 additions
and
0 deletions
+370
-0
docker-compose-frame.yml
docker-compose-frame.yml
+370
-0
No files found.
docker-compose-frame.yml
0 → 100644
View file @
9d586f0e
version
:
"
3.4"
services
:
#apixpress:
# image: repo.cybersolution.com.my:9005/apixpress:1.0.5
# restart: unless-stopped
# ports:
# - 9815:9815
# - 9816:9816
# networks:
# - mbkframework_mbk-net
# hostname: apixpress
# container_name: apixpress
# environment:
# TZ: Asia/Kuala_Lumpur
# APIXPRESS_DB_HOST: 192.168.200.104
# APIXPRESS_DB_PORT: 3306
# APIXPRESS_DB_USER: root
# APIXPRESS_DB_PASSWORD: Dar3D3^1L
# APIXPRESS_LOGGER_LEVEL: info
econfigservice
:
image
:
repo.cybersolution.com.my:9005/econfigservice:1.0
restart
:
always
# ports:
# - 9002:9002
networks
:
-
mbkframework_mbk-net
hostname
:
econfigservice
container_name
:
econfigservice
environment
:
-
TZ=Asia/Kuala_Lumpur
-
APP_INTERNAL_PORT=9002
-
GIT_CONFIG_ADDRESS=http://gitlab.cybersolution.com.my/mbk/configrepo.git
-
GIT_CONFIG_USERNAME=itctsb
-
GIT_CONFIG_PASSWORD=e#K0n1e!
ediscovery
:
image
:
repo.cybersolution.com.my:9005/ediscovery:1.0.0
restart
:
always
# ports:
# - 9010:9010
networks
:
-
mbkframework_mbk-net
hostname
:
ediscovery
container_name
:
ediscovery
environment
:
-
TZ=Asia/Kuala_Lumpur
-
WAIT_HOSTS=econfigservice:9002
-
APP_INTERNAL_PORT=9010
-
SB_CONFIG_ADDRESS=econfigservice
-
SB_CONFIG_PORT=9002
redis
:
image
:
redis
restart
:
always
command
:
[
"
redis-server"
,
"
--appendonly"
,
"
yes"
]
ports
:
-
9012:6379
networks
:
-
mbkframework_mbk-net
hostname
:
redis
container_name
:
redis
volumes
:
-
redis_data:/data
############# NGINX Config #############
nginx
:
image
:
nginx:1.17.2-alpine
hostname
:
nginx
container_name
:
nginx
restart
:
on-failure
ports
:
-
80:80
-
443:443
networks
:
mbkframework_mbk-net
:
aliases
:
-
mbkis.mbk.gov.my
volumes
:
-
./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
-
type
:
bind
source
:
./https/cert.crt
target
:
/etc/nginx/cert.crt
-
type
:
bind
source
:
./https/private.key
target
:
/etc/nginx/private.key
rabbitmq
:
image
:
rabbitmq:3-management
restart
:
always
ports
:
-
15672:15672
-
5672:5672
networks
:
-
mbkframework_mbk-net
container_name
:
rabbitmq
i18nservice
:
image
:
repo.cybersolution.com.my:9005/mbk/i18nservice:1.1.0
restart
:
always
ports
:
-
3000:3000
networks
:
-
mbkframework_mbk-net
hostname
:
i18nservice
container_name
:
i18nservice
environment
:
-
TZ=Asia/Kuala_Lumpur
-
APP_INTERNAL_HOST=0.0.0.0
-
APP_INTERNAL_PORT=3000
-
APP_CONTEXT_PATH=/i18nservice
-
GITLAB_BRANCH=master
-
GITLAB_TOKEN=xQsaqihgQAB_8W_9xn26
-
GITLAB_URL=http://gitlab.cybersolution.com.my/mbk/static/i18nrepo/raw/{branch}/{module}/{lang}.json?private_token={token}
-
GITLAB_DEFAULT_DIR=default
-
REDIS_HOST=redis
-
REDIS_PORT=6379
eloggingservice
:
image
:
repo.cybersolution.com.my:9005/mbk/eloggingservice:1.0.16
restart
:
always
ports
:
-
3001:3000
networks
:
-
mbkframework_mbk-net
depends_on
:
# - mongo
-
rabbitmq
hostname
:
eloggingservice
container_name
:
eloggingservice
environment
:
-
TZ=Asia/Kuala_Lumpur
-
APP_INTERNAL_HOST=0.0.0.0
-
APP_INTERNAL_PORT=3000
-
APP_CONTEXT_PATH=/eloggingservice
-
MONGODB_HOST=192.168.200.104
-
MONGODB_PORT=27017
-
MONGODB_USERNAME=root
-
MONGODB_PASSWORD=Dar3D3^1L
-
RABBITMQ_HOST=rabbitmq
-
RABBITMQ_PORT=5672
-
I18SERVICE=http://i18nservice:3000/i18n/language
############# KONG Config #############
postgreskong
:
image
:
postgres:9-alpine
restart
:
always
healthcheck
:
test
:
[
"
CMD"
,
"
pg_isready"
,
"
-U"
,
"
kong"
]
interval
:
30s
timeout
:
30s
retries
:
3
# ports:
# - 9020:5432
networks
:
-
mbkframework_mbk-net
hostname
:
postgreskong
container_name
:
postgreskong
volumes
:
-
postgreskong_data:/var/lib/postgresql/data
environment
:
-
POSTGRES_DB=kong
-
POSTGRES_PASSWORD=kong
-
POSTGRES_USER=kong
kongmigration
:
image
:
kong:1.2.1-alpine
hostname
:
kongmigration
container_name
:
kongmigration
command
:
kong migrations bootstrap
networks
:
-
mbkframework_mbk-net
depends_on
:
-
postgreskong
environment
:
-
KONG_DATABASE=postgres
-
KONG_PG_DATABASE=kong
-
KONG_PG_HOST=postgreskong
-
KONG_PG_PASSWORD=kong
-
KONG_PG_USER=kong
kong
:
image
:
kong:1.2.1-alpine
hostname
:
kong
container_name
:
kong
restart
:
always
healthcheck
:
test
:
[
"
CMD"
,
"
kong"
,
"
health"
]
interval
:
10s
timeout
:
10s
retries
:
10
ports
:
-
8000:8000
# proxy
-
8443:8443
# proxy ssl
-
9017:8001
# admin api
-
9018:8444
# admin api ssl
networks
:
-
mbkframework_mbk-net
depends_on
:
-
postgreskong
volumes
:
-
type
:
bind
source
:
./https/cert.crt
target
:
/cert.crt
-
type
:
bind
source
:
./https/private.key
target
:
/private.key
environment
:
-
KONG_SSL_CERT=cert.crt
-
KONG_SSL_CERT_KEY=private.key
-
KONG_ADMIN_SSL_CERT=cert.crt
-
KONG_ADMIN_SSL_CERT_KEY=private.key
-
KONG_DATABASE=postgres
-
KONG_PG_DATABASE=kong
-
KONG_PG_HOST=postgreskong
-
KONG_PG_PASSWORD=kong
-
KONG_PG_USER=kong
-
KONG_PROXY_LISTEN=0.0.0.0:8000, 0.0.0.0:8443 http2 ssl
-
KONG_PROXY_ACCESS_LOG=/dev/stdout
-
KONG_PROXY_ERROR_LOG=/dev/stderr
-
KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 http2 ssl
-
KONG_ADMIN_ACCESS_LOG=/dev/stdout
-
KONG_ADMIN_ERROR_LOG=/dev/stderr
############# KONGA Config #############
konga
:
image
:
pantsel/konga:0.14.4
hostname
:
konga
container_name
:
konga
restart
:
always
# ports:
# - 9019:1337
networks
:
-
mbkframework_mbk-net
depends_on
:
# - kong
-
kongaprepare
volumes
:
-
konga_data:/app/kongadata
environment
:
-
BASE_URL=/konga/
-
DB_ADAPTER=postgres
-
DB_HOST=postgreskong
-
DB_USER=kong
-
DB_PASSWORD=kong
-
DB_DATABASE=kongadb
-
KONGA_HOOK_TIMEOUT=120000
-
NODE_ENV=production
kongaprepare
:
image
:
pantsel/konga
hostname
:
kongaprepare
container_name
:
kongaprepare
command
:
-c prepare -a postgres -u postgresql://kong:kong@postgreskong:5432/kongadb
networks
:
-
mbkframework_mbk-net
depends_on
:
-
postgreskong
environment
:
-
DB_ADAPTER=postgres
-
DB_HOST=postgreskong
-
DB_USER=kong
-
DB_PASSWORD=kong
-
DB_DATABASE=kongdb
# ############# Percone PMM #############
pmmdata
:
image
:
percona/pmm-server:latest
command
:
[
"
/bin/true"
]
networks
:
-
mbkframework_mbk-net
hostname
:
pmmdata
container_name
:
pmmdata
volumes
:
-
/opt/prometheus/data
-
/opt/consul-data
-
/var/lib/mysql
-
/var/lib/grafana
pmmserver
:
image
:
percona/pmm-server:latest
restart
:
always
ports
:
-
9013:80
networks
:
-
mbkframework_mbk-net
hostname
:
pmmserver
container_name
:
pmmserver
volumes
:
-
/opt/prometheus/data
-
/opt/consul-data
-
/var/lib/mysql
-
/var/lib/grafana
############# Portainer Config #############
portainer
:
image
:
portainer/portainer-ce:latest
restart
:
always
# ports:
# - 8000:8000
# - 9000:9000
networks
:
-
mbkframework_mbk-net
hostname
:
portainer
container_name
:
portainer
volumes
:
-
/var/run/docker.sock:/var/run/docker.sock
-
portainer_data:/data
############# HTTPBin #############
httpbin
:
image
:
kennethreitz/httpbin
restart
:
always
# ports:
# - 80:80
networks
:
-
mbkframework_mbk-net
hostname
:
httpbin
container_name
:
httpbin
## DATA-API ##
data-api
:
image
:
repo.cybersolution.com.my:9005/ctsb.io/data-api:1.0.0
restart
:
always
ports
:
-
5051:8080
networks
:
-
mbkframework_mbk-net
hostname
:
data-api
container_name
:
data-api
environment
:
TZ
:
Asia/Kuala_Lumpur
MYSQL_HOST
:
192.168.200.104
MYSQL_PORT
:
3306
MYSQL_USER
:
root
MYSQL_PASSWORD
:
Dar3D3^1L
SPRING_WEBFLUX_BASE_PATH
:
/data-api
barcodeservice
:
image
:
repo.cybersolution.com.my:9005/skb/barcodeservice:1.0.1
restart
:
always
ports
:
-
3002:3000
networks
:
-
mbkframework_mbk-net
hostname
:
barcodeservice
container_name
:
barcodeservice
environment
:
-
TZ=Asia/Kuala_Lumpur
-
APP_INTERNAL_HOST=0.0.0.0
-
APP_INTERNAL_PORT=3000
-
APP_CONTEXT_PATH=/barcodeservice
shellinabox
:
image
:
sspreitzer/shellinabox
restart
:
always
ports
:
-
4200:4200
networks
:
-
mbkframework_mbk-net
hostname
:
shellinabox
container_name
:
shellinabox
environment
:
TZ
:
Asia/Kuala_Lumpur
SIAB_USER
:
mbkmaster
SIAB_PASSWORD
:
S3cret
SIAB_HOME
:
/home/mbkmaster
SIAB_SUDO
:
"
true"
SIAB_SSL
:
"
false"
volumes
:
redis_data
:
postgreskong_data
:
konga_data
:
portainer_data
:
networks
:
mbkframework_mbk-net
:
external
:
true
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment