mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 18:19:08 +00:00
28 lines
No EOL
733 B
Text
28 lines
No EOL
733 B
Text
```yaml
|
|
name: consistent-container-image-sources
|
|
description: Maintain consistent image sources in Docker compose files using authorized registries
|
|
globs: ['**/docker-compose.yml', '**/docker-compose.*.yml']
|
|
alwaysApply: true
|
|
```
|
|
|
|
Docker compose files should use consistent image sources from authorized registries rather than local builds in production configurations.
|
|
|
|
❌ Bad - Mixing build and image sources:
|
|
```yaml
|
|
services:
|
|
frontend:
|
|
build: ./frontend
|
|
backend:
|
|
image: ghcr.io/org/backend:latest
|
|
```
|
|
|
|
✅ Good - Consistent image sources:
|
|
```yaml
|
|
services:
|
|
frontend:
|
|
image: ghcr.io/org/frontend:latest
|
|
backend:
|
|
image: ghcr.io/org/backend:latest
|
|
```
|
|
|
|
Use build contexts only in development compose files. |