-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf($Docker): simplify docker compose by using environment variables
simplify docker compose by using environment variables BREAKING CHANGE: simplify docker compose by using environment variables
- Loading branch information
1 parent
9887360
commit 3216a95
Showing
10 changed files
with
63 additions
and
763 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
api-gateway/src/main/resources/application-development-docker.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
spring: | ||
zipkin: | ||
base-url: http://maf.zipkin.development:9411 | ||
base-url: http://maf.zipkin.development-local:9411 | ||
devtools: | ||
add-properties: true |
8 changes: 4 additions & 4 deletions
8
auth-center/src/main/resources/application-development-docker.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
# TAG must be corresponding with the version tag in pom.xml, need to modify it when new version releases | ||
TAG=0.0.2-SNAPSHOT | ||
|
||
# ENVIRONMENT could be 'development-docker', 'production', 'stage' or 'test' | ||
ENVIRONMENT=development-local | ||
|
||
# Docker container names (also docker container hostnames) | ||
MYSQL_CONTAINER_NAME="maf.mysql.${ENVIRONMENT}" | ||
REDIS_CONTAINER_NAME="maf.redis.${ENVIRONMENT}" | ||
ATMOZ_SFTP_CONTAINER_NAME="maf.atmoz-sftp.${ENVIRONMENT}" | ||
ZIPKIN_MYSQL_CONTAINER_NAME="maf.zipkin-mysql.${ENVIRONMENT}" | ||
ZIPKIN_DEPENDENCIES_CONTAINER_NAME="maf.zipkin-dependencies.${ENVIRONMENT}" | ||
ZIPKIN_CONTAINER_NAME="maf.zipkin.${ENVIRONMENT}" | ||
CONSUL_SERVICE_REGISTRY_CONTAINER_NAME="maf.consul-service-registry.${ENVIRONMENT}" | ||
SPRING_BOOT_ADMIN_CONTAINER_NAME="maf.spring-boot-admin.${ENVIRONMENT}" | ||
API_GATEWAY_CONTAINER_NAME="maf.api-gateway.${ENVIRONMENT}" | ||
AUTH_CENTER_CONTAINER_NAME="maf.auth-center.${ENVIRONMENT}" | ||
EXERCISE_MIS_CONTAINER_NAME="maf.exercise-mis.${ENVIRONMENT}" | ||
MUSCLE_MIS_CONTAINER_NAME="maf.muscle-mis.${ENVIRONMENT}" | ||
|
||
# JIB contain's Java tool options | ||
JAVA_TOOL_OPTIONS="-Xms128m -Xmx128m -Dspring.profiles.active=${ENVIRONMENT} -Dspring.cloud.consul.host=${CONSUL_SERVICE_REGISTRY_CONTAINER_NAME}" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.