🚀 Docker compose edu test

This commit is contained in:
kimjaeyeol
2021-10-27 15:17:34 +09:00
parent fcceafde0f
commit 5dce245521
24 changed files with 79 additions and 54 deletions

View File

@@ -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

View File

@@ -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