Skip to content

Commit

Permalink
apollo config
Browse files Browse the repository at this point in the history
  • Loading branch information
tvrcgo committed May 8, 2024
1 parent 604b6e8 commit 0e0858e
Show file tree
Hide file tree
Showing 4 changed files with 1,070 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apolloconfig/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Apollo Config

- 执行 sql 建好数据库
- 运行 docker-compose.yml
48 changes: 48 additions & 0 deletions apolloconfig/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: '2'

name: apollo

services:

config_svc:
image: apolloconfig/apollo-configservice
container_name: configservice
volumes:
- D:/Docker/apollo/logs:/opt/logs
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3306/apolloconfig?characterEncoding=utf8
- SPRING_DATASOURCE_USERNAME=arya
- SPRING_DATASOURCE_PASSWORD=123456
ports:
- 18080:8080

admin_svc:
depends_on:
- config_svc
image: apolloconfig/apollo-adminservice
container_name: adminservice
volumes:
- D:/Docker/apollo/logs:/opt/logs
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3306/apolloconfig?characterEncoding=utf8
- SPRING_DATASOURCE_USERNAME=arya
- SPRING_DATASOURCE_PASSWORD=123456
ports:
- 18090:8090

portal:
depends_on:
- admin_svc
image: apolloconfig/apollo-portal
container_name: portal
volumes:
- D:/Docker/apollo/logs:/opt/logs
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3306/apolloportal?characterEncoding=utf8
- SPRING_DATASOURCE_USERNAME=arya
- SPRING_DATASOURCE_PASSWORD=123456
- APOLLO_PORTAL_ENVS=dev
- DEV_META=http://localhost:18080
ports:
- 18070:8070

Loading

0 comments on commit 0e0858e

Please sign in to comment.