- Clear default passwords in all service configs and local dev YAMLs
- Add entrypoint.sh with envsubst to resolve ${ENV} vars in go-zero YAML
- Update Dockerfiles to install gettext and use entrypoint
- Update docker-compose to pass secrets via environment and require via ${VAR:?...}
- Add .gitignore rules for .env files, add .env.example template
Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
405 B
YAML
21 lines
405 B
YAML
# Local development config — fill in DataSource before running locally.
|
|
Name: purchase.rpc
|
|
ListenOn: 0.0.0.0:9003
|
|
|
|
Etcd:
|
|
Hosts:
|
|
- 127.0.0.1:2379
|
|
Key: purchase.rpc
|
|
|
|
DataSource: root:your_password@tcp(127.0.0.1:3306)/muyu_wms?charset=utf8mb4&parseTime=true&loc=Asia%2FShanghai
|
|
|
|
Cache:
|
|
- Host: 127.0.0.1:6379
|
|
|
|
PrometheusAddr: :9094
|
|
|
|
Log:
|
|
ServiceName: purchase-rpc
|
|
Mode: console
|
|
Level: info
|