support passing database, meta server info via system environment
docker-compose.yml sample: ------------------------------------------------------------------------------------------ version: '3' services: apollo-portal: image: docker.io/xzxiaoshan/apollo-portal:1.4.0 container_name: apollo-portal network_mode: "host" environment: SERVER_PORT: 5555 # DataSource Info DS_URL: "jdbc:mysql://pro.shanhy.com:3306/ApolloPortalDB?characterEncoding=utf8" DS_USERNAME: "shanhy" DS_PASSWORD: "xzxiaoshan@123" # Environmental variable declaration (meta server url, different environments should have different meta server addresses) DEV_META: "http://dev.shanhy.com:6666" FAT_META: "" UAT_META: "" LPT_META: "" PRO_META: "http://pro.shanhy.com:6666" depends_on: - apollo-adminservice logging: driver: "json-file" options: max-size: "200k" max-file: "10" apollo-configservice: image: docker.io/xzxiaoshan/apollo-configservice:1.4.0 container_name: apollo-configservice network_mode: "host" environment: SERVER_PORT: 6666 # DataSource Info DS_URL: "jdbc:mysql://pro.shanhy.com:3306/ApolloPortalDB?characterEncoding=utf8" DS_USERNAME: "shanhy" DS_PASSWORD: "xzxiaoshan@123" logging: driver: "json-file" options: max-size: "200k" max-file: "10" apollo-adminservice: image: docker.io/xzxiaoshan/apollo-adminservice:1.4.0 container_name: apollo-adminservice network_mode: "host" environment: SERVER_PORT: 6667 # DataSource Info DS_URL: "jdbc:mysql://pro.shanhy.com:3306/ApolloPortalDB?characterEncoding=utf8" DS_USERNAME: "shanhy" DS_PASSWORD: "xzxiaoshan@123" depends_on: - apollo-configservice logging: driver: "json-file" options: max-size: "200k" max-file: "10"
Showing
想要评论请 注册 或 登录