39 lines
1.5 KiB
Plaintext
39 lines
1.5 KiB
Plaintext
---
|
|
description:
|
|
globs: Dockerfile,Dockerfile.*
|
|
alwaysApply: false
|
|
---
|
|
# Docker Files
|
|
|
|
## Dockerfiles
|
|
- [docker/template/Dockerfile](mdc:docker/template/Dockerfile): Development/Base Dockerfile
|
|
- Used for local development and testing
|
|
- Referenced in [docker-compose.dev.yml](mdc:docker-compose.dev.yml)
|
|
|
|
- [docker/template/Dockerfile.production](mdc:docker/template/Dockerfile.production): Production-optimized Dockerfile
|
|
- Used for production deployments
|
|
- Referenced in [docker-compose.production.yml](mdc:docker-compose.production.yml)
|
|
|
|
## Docker Compose Files
|
|
- [docker-compose.dev.yml](mdc:docker-compose.dev.yml): Development setup
|
|
- Uses volume mounts for live code changes
|
|
- Configures development environment variables
|
|
- Mounts the [temp](mdc:temp) directory for local testing
|
|
|
|
- [docker-compose.staging.yml](mdc:docker-compose.staging.yml): Staging build configuration
|
|
- Builds and tags the staging image
|
|
- Used by CI/CD for staging deployments
|
|
|
|
- [docker-compose.production.yml](mdc:docker-compose.production.yml): Production build configuration
|
|
- Builds and tags the production image
|
|
- Used by CI/CD for production deployments
|
|
|
|
## Stack Files
|
|
- [stack.staging.yml](mdc:stack.staging.yml): Staging stack deployment
|
|
- Configures service deployment for staging environment
|
|
- Sets up Traefik routing rules
|
|
|
|
- [stack.production.yml](mdc:stack.production.yml): Production stack deployment
|
|
- Configures service deployment for production environment
|
|
- Sets up Traefik routing rules with appropriate security headers
|