- 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>
41 lines
580 B
YAML
41 lines
580 B
YAML
Name: gateway-api
|
|
Host: 0.0.0.0
|
|
Port: 8888
|
|
Timeout: 120000
|
|
|
|
Auth:
|
|
AccessSecret: ${ACCESS_SECRET}
|
|
AccessExpire: 7200
|
|
DefaultTenantId: t_default_001
|
|
|
|
DataSource: ${MYSQL_DSN}
|
|
PostgresDataSource: ${POSTGRES_DSN}
|
|
|
|
SystemRpc:
|
|
Etcd:
|
|
Hosts:
|
|
- etcd:2379
|
|
Key: system.rpc
|
|
NonBlock: true
|
|
|
|
InventoryRpc:
|
|
Etcd:
|
|
Hosts:
|
|
- etcd:2379
|
|
Key: inventory.rpc
|
|
NonBlock: true
|
|
Timeout: 60000
|
|
|
|
PurchaseRpc:
|
|
Etcd:
|
|
Hosts:
|
|
- etcd:2379
|
|
Key: purchase.rpc
|
|
NonBlock: true
|
|
Timeout: 60000
|
|
|
|
Log:
|
|
ServiceName: gateway-api
|
|
Mode: console
|
|
Level: info
|