Files
confgen/app/confgen.yaml

101 lines
2.3 KiB
YAML

templates:
simple:
path: examples/simple.yaml
format: yaml
schema: examples/schema.json
complex:
path: examples/complex.yaml
format: yaml
environments:
dev:
variables:
APP_NAME: myapp-dev
VERSION: 1.0.0-dev
DEBUG: true
DB_HOST: localhost
DB_PORT: 5432
DB_NAME: myapp_dev
USE_CACHE: false
CACHE_TTL: 60
LOG_LEVEL: debug
LOG_FORMAT: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
API_HOST: localhost
API_PORT: 8080
API_TIMEOUT: 30
FEATURES:
- feature1
- feature2
SERVICES:
- name: web
host: localhost
port: 80
- name: api
host: localhost
port: 8080
USE_METRICS: false
staging:
variables:
APP_NAME: myapp-staging
VERSION: 1.0.0-staging
DEBUG: true
DB_HOST: staging-db.example.com
DB_PORT: 5432
DB_NAME: myapp_staging
USE_CACHE: true
CACHE_TTL: 300
LOG_LEVEL: info
LOG_FORMAT: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
API_HOST: api-staging.example.com
API_PORT: 8080
API_TIMEOUT: 30
FEATURES:
- feature1
- feature2
- feature3
SERVICES:
- name: web
host: web-staging.example.com
port: 80
replicas: 2
- name: api
host: api-staging.example.com
port: 8080
replicas: 2
USE_METRICS: true
METRICS_ENDPOINT: https://metrics-staging.example.com
prod:
variables:
APP_NAME: myapp
VERSION: 1.0.0
DEBUG: false
DB_HOST: db.example.com
DB_PORT: 5432
DB_NAME: myapp_prod
USE_CACHE: true
CACHE_TTL: 600
LOG_LEVEL: warning
LOG_FORMAT: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
API_HOST: api.example.com
API_PORT: 443
API_TIMEOUT: 60
FEATURES:
- feature1
- feature2
- feature3
- feature4
SERVICES:
- name: web
host: web.example.com
port: 80
replicas: 4
- name: api
host: api.example.com
port: 443
replicas: 4
USE_METRICS: true
METRICS_ENDPOINT: https://metrics.example.com