@@ -6,17 +6,17 @@ services:
66 environment:
77 API_KEY: "${API_KEY:-[[ deployment_api_key ]]}"
88[% if database == "postgresql" %] DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/app
9- [% endif %][% if background_tasks == "taskiq" or enable_caching or rate_limiting == "redis" %] REDIS_URL: redis://redis:6379/0
10- [% endif %][% if agent_capability == "pydantic-ai " %] LLM_BASE_URL: "${LLM_BASE_URL:-https://api.example.com/v1}"
9+ [% endif %][% if enable_redis %] REDIS_URL: redis://redis:6379/0
10+ [% endif %][% if ai_framework == "pydantic_ai " %] LLM_BASE_URL: "${LLM_BASE_URL:-https://api.example.com/v1}"
1111 LLM_API_KEY: "${LLM_API_KEY:-model-key-CHANGEME}"
1212 LLM_MODEL: "${LLM_MODEL:-model-name-CHANGEME}"
13- [% endif %][% if telemetry == "logfire" %] LOGFIRE_TOKEN: "${LOGFIRE_TOKEN:-}"
13+ [% endif %][% if enable_logfire %] LOGFIRE_TOKEN: "${LOGFIRE_TOKEN:-}"
1414[% endif %] ports:
1515 - "8000:8000"
16- [% if database == "postgresql" or background_tasks == "taskiq" or enable_caching or rate_limiting == "redis " %] depends_on:
16+ [% if database == "postgresql" or enable_redis or background_tasks == "taskiq " %] depends_on:
1717[% if database == "postgresql" %] migrate:
1818 condition: service_completed_successfully
19- [% endif %][% if background_tasks == "taskiq" or enable_caching or rate_limiting == "redis " %] redis:
19+ [% endif %][% if enable_redis or background_tasks == "taskiq " %] redis:
2020 condition: service_healthy
2121[% endif %][% endif %] healthcheck:
2222 test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health/ready')"]
@@ -31,7 +31,7 @@ services:
3131 command: ["uv", "run", "--no-sync", "taskiq", "worker", "app.tasks.taskiq:broker"]
3232 environment:
3333 REDIS_URL: redis://redis:6379/0
34- [% if telemetry == "logfire" %] LOGFIRE_TOKEN: "${LOGFIRE_TOKEN:-}"
34+ [% if enable_logfire %] LOGFIRE_TOKEN: "${LOGFIRE_TOKEN:-}"
3535[% endif %]
3636 depends_on:
3737 redis:
@@ -44,7 +44,7 @@ services:
4444 command: ["uv", "run", "--no-sync", "taskiq", "scheduler", "app.tasks.taskiq:scheduler"]
4545 environment:
4646 REDIS_URL: redis://redis:6379/0
47- [% if telemetry == "logfire" %] LOGFIRE_TOKEN: "${LOGFIRE_TOKEN:-}"
47+ [% if enable_logfire %] LOGFIRE_TOKEN: "${LOGFIRE_TOKEN:-}"
4848[% endif %]
4949 depends_on:
5050 redis:
@@ -76,7 +76,7 @@ services:
7676 retries: 15
7777 volumes:
7878 - postgres-data:/var/lib/postgresql/data
79- [% endif %][% if background_tasks == "taskiq" or enable_caching or rate_limiting == "redis " %]
79+ [% endif %][% if enable_redis or background_tasks == "taskiq " %]
8080 redis:
8181 image: redis:8-alpine
8282 ports:
@@ -88,8 +88,8 @@ services:
8888 retries: 15
8989 volumes:
9090 - redis-data:/data
91- [% endif %][% if database == "postgresql" or background_tasks == "taskiq" or enable_caching or rate_limiting == "redis " %]
91+ [% endif %][% if database == "postgresql" or enable_redis or background_tasks == "taskiq " %]
9292volumes:
9393[% if database == "postgresql" %] postgres-data:
94- [% endif %][% if background_tasks == "taskiq" or enable_caching or rate_limiting == "redis " %] redis-data:
94+ [% endif %][% if enable_redis or background_tasks == "taskiq " %] redis-data:
9595[% endif %][% endif %]
0 commit comments