- 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
408 B
YAML
21 lines
408 B
YAML
# Local development config — fill in DataSource before running locally.
|
|
Name: inventory.rpc
|
|
ListenOn: 0.0.0.0:9002
|
|
|
|
Etcd:
|
|
Hosts:
|
|
- 127.0.0.1:2379
|
|
Key: inventory.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: :9092
|
|
|
|
Log:
|
|
ServiceName: inventory-rpc
|
|
Mode: console
|
|
Level: info
|