🚀 Docker compose edu test
This commit is contained in:
@@ -1,41 +1,53 @@
|
||||
version: '3.8'
|
||||
version: '3'
|
||||
services:
|
||||
egov-user-service:
|
||||
container_name: egov-user-service
|
||||
userservice:
|
||||
container_name: userservice
|
||||
image: egovframe/msa-user-service:latest
|
||||
restart: always
|
||||
#networks: egovnetwork
|
||||
volumes:
|
||||
- ${HOME}/msa-attach-volume:/usr/app/msa-attach-volume
|
||||
- ${HOME}/workspace/docker-compose:/usr/app/msa-attach-volume
|
||||
environment:
|
||||
SPRING_CLOUD_CONFIG_URI: http://config:8888
|
||||
SPRING_PROFILES_ACTIVE: default
|
||||
depends_on:
|
||||
- egov-apigateway
|
||||
APP_HOME: /usr/app
|
||||
logstash_hostname: logstash:5001
|
||||
EUREKA_INSTANCE_HOSTNAME: discovery
|
||||
MYSQL_HOSTNAME: mysql
|
||||
RABBITMQ_HOSTNAME: rabbitmq
|
||||
ZIPKIN_HOSTNAME: zipkin
|
||||
TZ: Asia/Seoul
|
||||
|
||||
egov-board-service:
|
||||
container_name: egov-board-service
|
||||
boardservice:
|
||||
container_name: boardservice
|
||||
image: egovframe/msa-board-service:latest
|
||||
restart: always
|
||||
#networks: egovnetwork
|
||||
volumes:
|
||||
- ${HOME}/msa-attach-volume:/usr/app/msa-attach-volume
|
||||
- ${HOME}/workspace:/usr/app/msa-attach-volume
|
||||
environment:
|
||||
SPRING_CLOUD_CONFIG_URI: http://config:8888
|
||||
SPRING_PROFILES_ACTIVE: default
|
||||
depends_on:
|
||||
- egov-apigateway
|
||||
EUREKA_INSTANCE_HOSTNAME: discovery
|
||||
APP_HOME: /usr/app
|
||||
logstash_hostname: logstash:5001
|
||||
MYSQL_HOSTNAME: mysql
|
||||
TZ: Asia/Seoul
|
||||
|
||||
egov-portal-service:
|
||||
container_name: egov-portal-service
|
||||
portalservice:
|
||||
container_name: portalservice
|
||||
image: egovframe/msa-portal-service:latest
|
||||
restart: always
|
||||
#networks: egovnetwork
|
||||
volumes:
|
||||
- ${HOME}/msa-attach-volume:/usr/app/msa-attach-volume
|
||||
- ${HOME}/workspace:/usr/app/msa-attach-volume
|
||||
environment:
|
||||
SPRING_CLOUD_CONFIG_URI: http://config:8888
|
||||
SPRING_PROFILES_ACTIVE: default
|
||||
depends_on:
|
||||
- egov-apigateway
|
||||
EUREKA_INSTANCE_HOSTNAME: discovery
|
||||
APP_HOME: /usr/app
|
||||
logstash_hostname: logstash:5001
|
||||
MYSQL_HOSTNAME: mysql
|
||||
TZ: Asia/Seoul
|
||||
|
||||
# networks:
|
||||
# egovnetwork:
|
||||
# driver: bridge
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: egov-network
|
||||
@@ -10,6 +10,9 @@ services:
|
||||
- ${HOME}/workspace/egovframe-msa-edu/config:/usr/app/config # volume bind
|
||||
environment:
|
||||
ENCRYPT_KEY: token_secret
|
||||
logstash_hostname: logstash:5001
|
||||
RABBITMQ_HOSTNAME: rabbitmq
|
||||
ZIPKIN_HOSTNAME: zipkin
|
||||
TZ: Asia/Seoul
|
||||
|
||||
discovery:
|
||||
@@ -35,6 +38,9 @@ services:
|
||||
SPRING_CLOUD_CONFIG_URI: http://config:8888
|
||||
SPRING_PROFILES_ACTIVE: default
|
||||
EUREKA_INSTANCE_HOSTNAME: discovery
|
||||
RABBITMQ_HOSTNAME: rabbitmq
|
||||
ZIPKIN_HOSTNAME: zipkin
|
||||
APP_HOME: /usr/app
|
||||
TZ: Asia/Seoul
|
||||
depends_on:
|
||||
- config
|
||||
|
||||
@@ -14,10 +14,8 @@ services:
|
||||
memlock:
|
||||
soft: -1
|
||||
hard: -1
|
||||
networks:
|
||||
- elastic
|
||||
volumes:
|
||||
- ${HOME}/docker-volume/elasticsearch/data:/usr/share/elasticsearch/data
|
||||
- ${PWD}/data:/usr/share/elasticsearch/data
|
||||
|
||||
logstash:
|
||||
container_name: logstash
|
||||
@@ -37,8 +35,6 @@ services:
|
||||
source: ${PWD}/logstash/pipeline
|
||||
target: /usr/share/logstash/pipeline
|
||||
read_only: true
|
||||
networks:
|
||||
- elastic
|
||||
depends_on:
|
||||
- elasticsearch
|
||||
|
||||
@@ -57,11 +53,10 @@ services:
|
||||
source: ${PWD}/kibana/config/kibana.yml
|
||||
target: /usr/share/kibana/config/kibana.yml
|
||||
read_only: true
|
||||
networks:
|
||||
- elastic
|
||||
depends_on:
|
||||
- elasticsearch
|
||||
|
||||
networks:
|
||||
elastic:
|
||||
driver: bridge
|
||||
default:
|
||||
external:
|
||||
name: egov-network
|
||||
@@ -17,3 +17,8 @@ services:
|
||||
ports:
|
||||
- "3306:3306"
|
||||
container_name: mysql
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: egov-network
|
||||
Reference in New Issue
Block a user