Update docker-compose-frame.yml

parent 432fcc59
...@@ -34,27 +34,27 @@ services: ...@@ -34,27 +34,27 @@ services:
- APP_INTERNAL_PORT=9010 - APP_INTERNAL_PORT=9010
- SB_CONFIG_ADDRESS=econfigservice - SB_CONFIG_ADDRESS=econfigservice
- SB_CONFIG_PORT=9002 - SB_CONFIG_PORT=9002
redis: # redis:
image: redis # image: redis
restart: always # restart: always
command: ["redis-server", "--appendonly", "yes"] # command: ["redis-server", "--appendonly", "yes"]
ports: # ports:
- 9012:6379 # - 9012:6379
networks: # networks:
- skbframework_skb-net # - skbframework_skb-net
hostname: redis # hostname: redis
container_name: redis # container_name: redis
volumes: # volumes:
- redis_data:/data # - redis_data:/data
rabbitmq: # rabbitmq:
image: rabbitmq:3-management # image: rabbitmq:3-management
restart: always # restart: always
ports: # ports:
- 15672:15672 # - 15672:15672
- 5672:5672 # - 5672:5672
networks: # networks:
- skbframework_skb-net # - skbframework_skb-net
container_name: rabbitmq # container_name: rabbitmq
i18nservice: i18nservice:
image: repo.cybersolution.com.my:9005/skb/i18nservice:1.1.4 image: repo.cybersolution.com.my:9005/skb/i18nservice:1.1.4
...@@ -123,122 +123,122 @@ services: ...@@ -123,122 +123,122 @@ services:
source: ./https/cert.key source: ./https/cert.key
target: /etc/nginx/cert.key target: /etc/nginx/cert.key
############# KONG Config ############# ############# KONG Config #############
postgreskong: # postgreskong:
image: postgres:9-alpine # image: postgres:9-alpine
restart: always # restart: always
healthcheck: # healthcheck:
test: ["CMD", "pg_isready", "-U", "kong"] # test: ["CMD", "pg_isready", "-U", "kong"]
interval: 30s # interval: 30s
timeout: 30s # timeout: 30s
retries: 3 # retries: 3
# ports: # # ports:
# - 9020:5432 # # - 9020:5432
networks: # networks:
- skbframework_skb-net # - skbframework_skb-net
hostname: postgreskong # hostname: postgreskong
container_name: postgreskong # container_name: postgreskong
volumes: # volumes:
- postgreskong_data:/var/lib/postgresql/data # - postgreskong_data:/var/lib/postgresql/data
environment: # environment:
- POSTGRES_DB=kong # - POSTGRES_DB=kong
- POSTGRES_PASSWORD=kong # - POSTGRES_PASSWORD=kong
- POSTGRES_USER=kong # - POSTGRES_USER=kong
kongmigration: # kongmigration:
image: kong:1.2.1-alpine # image: kong:1.2.1-alpine
hostname: kongmigration # hostname: kongmigration
container_name: kongmigration # container_name: kongmigration
command: kong migrations bootstrap # command: kong migrations bootstrap
networks: # networks:
- skbframework_skb-net # - skbframework_skb-net
depends_on: # depends_on:
- postgreskong # - postgreskong
environment: # environment:
- KONG_DATABASE=postgres # - KONG_DATABASE=postgres
- KONG_PG_DATABASE=kong # - KONG_PG_DATABASE=kong
- KONG_PG_HOST=postgreskong # - KONG_PG_HOST=postgreskong
- KONG_PG_PASSWORD=kong # - KONG_PG_PASSWORD=kong
- KONG_PG_USER=kong # - KONG_PG_USER=kong
kong: # kong:
image: kong:1.2.1-alpine # image: kong:1.2.1-alpine
hostname: kong # hostname: kong
container_name: kong # container_name: kong
restart: always # restart: always
healthcheck: # healthcheck:
test: ["CMD", "kong", "health"] # test: ["CMD", "kong", "health"]
interval: 10s # interval: 10s
timeout: 10s # timeout: 10s
retries: 10 # retries: 10
ports: # ports:
- 8000:8000 # proxy # - 8000:8000 # proxy
- 8443:8443 # proxy ssl # - 8443:8443 # proxy ssl
- 9017:8001 # admin api # - 9017:8001 # admin api
- 9018:8444 # admin api ssl # - 9018:8444 # admin api ssl
networks: # networks:
- skbframework_skb-net # - skbframework_skb-net
depends_on: # depends_on:
- postgreskong # - postgreskong
volumes: # volumes:
- type: bind # - type: bind
source: ./https/cert.crt # source: ./https/cert.crt
target: /cert.crt # target: /cert.crt
- type: bind # - type: bind
source: ./https/cert.key # source: ./https/cert.key
target: /cert.key # target: /cert.key
environment: # environment:
- KONG_SSL_CERT=cert.crt # - KONG_SSL_CERT=cert.crt
- KONG_SSL_CERT_KEY=cert.key # - KONG_SSL_CERT_KEY=cert.key
- KONG_ADMIN_SSL_CERT=cert.crt # - KONG_ADMIN_SSL_CERT=cert.crt
- KONG_ADMIN_SSL_CERT_KEY=cert.key # - KONG_ADMIN_SSL_CERT_KEY=cert.key
- KONG_DATABASE=postgres # - KONG_DATABASE=postgres
- KONG_PG_DATABASE=kong # - KONG_PG_DATABASE=kong
- KONG_PG_HOST=postgreskong # - KONG_PG_HOST=postgreskong
- KONG_PG_PASSWORD=kong # - KONG_PG_PASSWORD=kong
- KONG_PG_USER=kong # - KONG_PG_USER=kong
- KONG_PROXY_LISTEN=0.0.0.0:8000, 0.0.0.0:8443 http2 ssl # - KONG_PROXY_LISTEN=0.0.0.0:8000, 0.0.0.0:8443 http2 ssl
- KONG_PROXY_ACCESS_LOG=/dev/stdout # - KONG_PROXY_ACCESS_LOG=/dev/stdout
- KONG_PROXY_ERROR_LOG=/dev/stderr # - KONG_PROXY_ERROR_LOG=/dev/stderr
- KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 http2 ssl # - KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 http2 ssl
- KONG_ADMIN_ACCESS_LOG=/dev/stdout # - KONG_ADMIN_ACCESS_LOG=/dev/stdout
- KONG_ADMIN_ERROR_LOG=/dev/stderr # - KONG_ADMIN_ERROR_LOG=/dev/stderr
############# KONGA Config ############# ############# KONGA Config #############
konga: # konga:
image: pantsel/konga:0.14.4 # image: pantsel/konga:0.14.4
hostname: konga # hostname: konga
container_name: konga # container_name: konga
restart: always # restart: always
# ports: # # ports:
# - 9019:1337 # # - 9019:1337
networks: # networks:
- skbframework_skb-net # - skbframework_skb-net
depends_on: # depends_on:
# - kong # # - kong
- kongaprepare # - kongaprepare
volumes: # volumes:
- konga_data:/app/kongadata # - konga_data:/app/kongadata
environment: # environment:
- BASE_URL=/konga/ # - BASE_URL=/konga/
- DB_ADAPTER=postgres # - DB_ADAPTER=postgres
- DB_HOST=postgreskong # - DB_HOST=postgreskong
- DB_USER=kong # - DB_USER=kong
- DB_PASSWORD=kong # - DB_PASSWORD=kong
- DB_DATABASE=kongadb # - DB_DATABASE=kongadb
- KONGA_HOOK_TIMEOUT=120000 # - KONGA_HOOK_TIMEOUT=120000
- NODE_ENV=production # - NODE_ENV=production
kongaprepare: # kongaprepare:
image: pantsel/konga # image: pantsel/konga
hostname: kongaprepare # hostname: kongaprepare
container_name: kongaprepare # container_name: kongaprepare
command: -c prepare -a postgres -u postgresql://kong:kong@postgreskong:5432/kongadb # command: -c prepare -a postgres -u postgresql://kong:kong@postgreskong:5432/kongadb
networks: # networks:
- skbframework_skb-net # - skbframework_skb-net
depends_on: # depends_on:
- postgreskong # - postgreskong
environment: # environment:
- DB_ADAPTER=postgres # - DB_ADAPTER=postgres
- DB_HOST=postgreskong # - DB_HOST=postgreskong
- DB_USER=kong # - DB_USER=kong
- DB_PASSWORD=kong # - DB_PASSWORD=kong
- DB_DATABASE=kongdb # - DB_DATABASE=kongdb
############# Portainer Config ############# ############# Portainer Config #############
portainer: portainer:
...@@ -254,22 +254,22 @@ services: ...@@ -254,22 +254,22 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data - portainer_data:/data
data-api: # data-api:
image: repo.cybersolution.com.my:9005/ctsb.io/data-api:1.0.0 # image: repo.cybersolution.com.my:9005/ctsb.io/data-api:1.0.0
restart: always # restart: always
ports: # ports:
- 5051:8080 # - 5051:8080
networks: # networks:
- skbframework_skb-net # - skbframework_skb-net
hostname: data-api # hostname: data-api
container_name: data-api # container_name: data-api
environment: # environment:
TZ: Asia/Kuala_Lumpur # TZ: Asia/Kuala_Lumpur
MYSQL_HOST: 172.16.0.67 # MYSQL_HOST: 172.16.0.67
MYSQL_PORT: 3306 # MYSQL_PORT: 3306
MYSQL_USER: root # MYSQL_USER: root
MYSQL_PASSWORD: Dar3D3^1L # MYSQL_PASSWORD: Dar3D3^1L
SPRING_WEBFLUX_BASE_PATH: /data-api # SPRING_WEBFLUX_BASE_PATH: /data-api
volumes: volumes:
redis_data: redis_data:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment