provisioning-code/.ncl-cache/79fa0b5c32cd3f6a8a8b06afb4182daf223678618ce12464a9a4c9cb2b22f1c7.json

82 lines
1.7 KiB
JSON

{
"provisioning": {
"database": {
"auto_migrate": false,
"migrations_path": "./migrations",
"sqlite": {
"cache_size": -2000,
"database_path": "./data/app.db",
"foreign_keys": true,
"journal_mode": "WAL",
"synchronous": "NORMAL"
},
"type": "sqlite"
},
"deployment": {
"docker_compose": {
"enabled": true,
"env_file": ".env",
"version": "v3_8"
},
"target": "docker"
},
"monitoring": {},
"network": {},
"project": {
"description": "Simple REST API with SQLite database",
"name": "simple-api",
"tags": [
"api",
"sqlite",
"development"
],
"version": "0.1.0"
},
"security": {
"auth": {
"method": "none"
},
"tls": {
"enabled": false
}
},
"services": {
"api": {
"environment": {
"DATABASE_PATH": "./data/app.db",
"LOG_LEVEL": "debug",
"SERVER_HOST": "0.0.0.0",
"SERVER_PORT": "8080"
},
"healthcheck": {
"enabled": true,
"endpoint": "/health",
"interval": 30,
"retries": 3,
"start_period": 10,
"timeout": 10
},
"image": {
"build_context": ".",
"dockerfile": "Dockerfile",
"name": "simple-api",
"tag": "latest"
},
"ports": [
{
"container_port": 8080,
"host_port": 8080,
"protocol": "tcp"
}
],
"replicas": 1,
"restart_policy": "unless-stopped",
"type": "api",
"volumes": [
"./data:/app/data"
]
}
},
"storage": {}
}
}