forked from apolloconfig/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker quick start and remove unnecessary files
- Loading branch information
Showing
7 changed files
with
106 additions
and
288 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '2' | ||
|
||
services: | ||
apollo-quick-start: | ||
image: nobodyiam/apollo-quick-start | ||
container_name: apollo-quick-start | ||
depends_on: | ||
- apollo-db | ||
ports: | ||
- "8080:8080" | ||
- "8070:8070" | ||
links: | ||
- apollo-db | ||
|
||
apollo-db: | ||
image: mysql:5.7 | ||
container_name: apollo-db | ||
environment: | ||
TZ: Asia/Shanghai | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' | ||
depends_on: | ||
- apollo-dbdata | ||
ports: | ||
- "13306:3306" | ||
volumes: | ||
- ./sql:/docker-entrypoint-initdb.d | ||
volumes_from: | ||
- apollo-dbdata | ||
|
||
apollo-dbdata: | ||
image: alpine:latest | ||
container_name: apollo-dbdata | ||
volumes: | ||
- /var/lib/mysql |
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 |
---|---|---|
|
@@ -364,12 +364,44 @@ CREATE TABLE `ServerConfig` ( | |
# ------------------------------------------------------------ | ||
INSERT INTO `ServerConfig` (`Key`, `Cluster`, `Value`, `Comment`) | ||
VALUES | ||
('eureka.service.url', 'default', 'http://apollo-configservice:8080/eureka/', 'Eureka服务Url,多个service以英文逗号分隔'), | ||
('eureka.service.url', 'default', 'http://localhost:8080/eureka/', 'Eureka服务Url,多个service以英文逗号分隔'), | ||
('namespace.lock.switch', 'default', 'false', '一次发布只能有一个人修改开关'), | ||
('item.value.length.limit', 'default', '20000', 'item value最大长度限制'), | ||
('config-service.cache.enabled', 'default', 'false', 'ConfigService是否开启缓存,开启后能提高性能,但是会增大内存消耗!'), | ||
('item.key.length.limit', 'default', '128', 'item key 最大长度限制'); | ||
|
||
# Sample Data | ||
# ------------------------------------------------------------ | ||
INSERT INTO `App` (`AppId`, `Name`, `OrgId`, `OrgName`, `OwnerName`, `OwnerEmail`) | ||
VALUES | ||
('SampleApp', 'Sample App', 'TEST1', '样例部门1', 'apollo', '[email protected]'); | ||
|
||
INSERT INTO `AppNamespace` (`Name`, `AppId`, `Format`, `IsPublic`, `Comment`) | ||
VALUES | ||
('application', 'SampleApp', 'properties', 0, 'default app namespace'); | ||
|
||
INSERT INTO `Cluster` (`Name`, `AppId`) | ||
VALUES | ||
('default', 'SampleApp'); | ||
|
||
INSERT INTO `Namespace` (`Id`, `AppId`, `ClusterName`, `NamespaceName`) | ||
VALUES | ||
(1, 'SampleApp', 'default', 'application'); | ||
|
||
|
||
INSERT INTO `Item` (`NamespaceId`, `Key`, `Value`, `Comment`, `LineNum`) | ||
VALUES | ||
(1, 'timeout', '100', 'sample timeout配置', 1); | ||
|
||
INSERT INTO `Release` (`ReleaseKey`, `Name`, `Comment`, `AppId`, `ClusterName`, `NamespaceName`, `Configurations`) | ||
VALUES | ||
('20161009155425-d3a0749c6e20bc15', '20161009155424-release', 'Sample发布', 'SampleApp', 'default', 'application', '{\"timeout\":\"100\"}'); | ||
|
||
INSERT INTO `ReleaseHistory` (`AppId`, `ClusterName`, `NamespaceName`, `BranchName`, `ReleaseId`, `PreviousReleaseId`, `Operation`, `OperationContext`, `DataChange_CreatedBy`, `DataChange_LastModifiedBy`) | ||
VALUES | ||
('SampleApp', 'default', 'application', 'default', 1, 0, 0, '{}', 'apollo', 'apollo'); | ||
|
||
|
||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | ||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; | ||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; | ||
|
Oops, something went wrong.