@kenkaiiii/queen-python
Version:
Create modern Python projects with uv, ruff, mypy, FastAPI, AI integration, and Queen Claude foundation - universal for APIs, AI applications, CLI tools, and automation
71 lines (65 loc) • 1.5 kB
YAML
version: '3.8'
services:
app:
build: .
container_name: {{PROJECT_NAME}}_app
restart: unless-stopped
environment:
- APP_NAME={{PROJECT_NAME}}
- DEBUG=false
- LOG_LEVEL=INFO
volumes:
- ./data:/app/data
ports:
- "8000:8000"
depends_on:
- redis
- postgres
networks:
- {{PROJECT_NAME}}_network
postgres:
image: postgres:16-alpine
container_name: {{PROJECT_NAME}}_postgres
restart: unless-stopped
environment:
POSTGRES_DB: {{PROJECT_NAME}}
POSTGRES_USER: {{PROJECT_NAME}}
POSTGRES_PASSWORD: changeme
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
networks:
- {{PROJECT_NAME}}_network
redis:
image: redis:7-alpine
container_name: {{PROJECT_NAME}}_redis
restart: unless-stopped
command: redis-server --appendonly yes
volumes:
- redis_data:/data
ports:
- "6379:6379"
networks:
- {{PROJECT_NAME}}_network
nginx:
image: nginx:alpine
container_name: {{PROJECT_NAME}}_nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl:ro
depends_on:
- app
networks:
- {{PROJECT_NAME}}_network
volumes:
postgres_data:
redis_data:
networks:
{{PROJECT_NAME}}_network:
driver: bridge