RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/ivangrynenko/cursorrules

Cursor rule

.cursor/rules/lagoon-docker-compose-standards.mdc

Standards for Lagoon Docker Compose configuration

Cursor rules

Quality

36/100

Scores the file, not the repository.

Length

323 words

1 headings · 1 code blocks

Repository

86

— · pushed 280 days ago

Last changed

3 days ago

First indexed 3 days ago.
ivangrynenko/cursorrules/.cursor/rules/lagoon-docker-compose-standards.mdcRawGitHub
1---
2description: Standards for Lagoon Docker Compose configuration
3globs: docker-compose.yml, docker-compose.*.yml
4---
5# Lagoon Docker Compose Standards
6 
7Ensures proper Docker Compose configuration for Lagoon deployments, following best practices and Lagoon-specific requirements.
8 
9<rule>
10name: lagoon_docker_compose_standards
11description: Enforce standards for Lagoon Docker Compose files
12filters:
13 - type: file_name
14 pattern: "^docker-compose(\\.\\w+)?\\.yml$"
15 
16actions:
17 - type: enforce
18 conditions:
19 - pattern: "services:\\s+\\w+:\\s+(?!.*labels:[\\s\\S]*lagoon)"
20 message: "Add Lagoon labels to service definitions for proper Lagoon integration"
21 
22 - pattern: "version:\\s*['\"]*2"
23 message: "Use Docker Compose format version 3 or higher for compatibility with modern Docker features"
24 
25 - pattern: "volumes:\\s+[^:]+:\\s+(?!.*delegated)"
26 message: "Use 'delegated' mount consistency for better performance on macOS development environments"
27
28 - pattern: "services:\\s+\\w+:\\s+(?!.*restart:)"
29 message: "Define restart policy for services to ensure proper behavior during deployment"
30 
31 - type: suggest
32 message: |
33 ## Lagoon Docker Compose Best Practices:
34
35 ### Service Configuration
36 - Define service types via labels (e.g., `lagoon.type: nginx`)
37 - Use proper image naming conventions (e.g., `amazeeio/nginx-drupal:latest`)
38 - Set appropriate environment variables using Lagoon variables
39 - Define health checks for critical services
40 - Configure proper networking with Lagoon defaults
41 - Set resource constraints appropriate for each environment
42
43 ### Volume Configuration
44 - Use named volumes for persistent data
45 - Configure appropriate volume mounts with correct permissions
46 - Use 'delegated' mount consistency for macOS performance
47 - Avoid mounting the entire codebase when possible
48
49 ### Build Configuration
50 - Use build arguments appropriately
51 - Define proper Dockerfile paths
52 - Use multi-stage builds for smaller images
53
54 ### Example Service Configuration:
55```yaml
56 services:
57 nginx:
58 build:
59 context: .
60 dockerfile: nginx.dockerfile
61 labels:
62 lagoon.type: nginx
63 lagoon.persistent: /app/web/sites/default/files/
64 volumes:
65 - app:/app:delegated
66 depends_on:
67 - php
68 environment:
69 LAGOON_ROUTE: ${LAGOON_ROUTE:-http://project.docker.amazee.io}
70```
71 
72 - type: validate
73 conditions:
74 - pattern: "services:\\s+cli:\\s+(?!.*build:)"
75 message: "CLI service should have proper build configuration for Lagoon compatibility"
76 
77 - pattern: "services:\\s+\\w+:\\s+(?!.*depends_on:)"
78 message: "Define service dependencies for proper startup order and container relationships"
79 
80 - pattern: "networks:\\s+(?!.*default:)"
81 message: "Configure proper network settings for Lagoon compatibility and service communication"
82
83 - pattern: "services:\\s+mariadb:\\s+(?!.*image:\\s+amazeeio\\/mariadb)"
84 message: "Use Lagoon-provided MariaDB image for compatibility with Lagoon environment"
85
86 - pattern: "services:\\s+\\w+:\\s+environment:\\s+(?!.*\\$\\{LAGOON)"
87 message: "Use Lagoon environment variables with fallbacks for local development"
88 
89metadata:
90 priority: high
91 version: 1.1
92</rule>

Sections

  • Lagoon Docker Compose Standards

Stack — with the evidence

shell

(0.80)

github-actions

(0.60)

Glob targeting

  • docker-compose.yml
  • docker-compose.*.yml

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
ivangrynenko
Language
—
License
—
Archived
no

All configs in this repo

Also in ivangrynenko/cursorrules

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
ivangrynenko/cursorrules.cursor/rules/accessibility-standards.mdc · 86Cursor rulesshellgithub-actionsui44/1003 days ago
ivangrynenko/cursorrules.cursor/rules/api-standards.mdc · 86Cursor rulesshellgithub-actionsapi44/1003 days ago
ivangrynenko/cursorrules.cursor/rules/behat-steps.mdc · 86Cursor rulesshellgithub-actionslint-formatstyleperformanceagent-behaviour42/1003 days ago
ivangrynenko/cursorrules.cursor/rules/build-optimization.mdc · 86Cursor rulesshellgithub-actionsbuild48/1003 days ago
ivangrynenko/cursorrules.cursor/rules/confluence-editing-standards.mdc · 86Cursor rulesshellgithub-actionsstylearchsecuritydeployment60/1003 days ago
ivangrynenko/cursorrules.cursor/rules/debugging-standards.mdc · 86Cursor rulesshellgithub-actionsno sections30/1003 days ago
ivangrynenko/cursorrules.cursor/rules/docker-compose-standards.mdc · 86Cursor rulesshellgithub-actionsstyle62/1003 days ago
ivangrynenko/cursorrules.cursor/rules/drupal-broken-access-control.mdc · 86Cursor rulesshellgithub-actionsstylesecurity52/1003 days ago
ivangrynenko/cursorrules.cursor/rules/drupal-cryptographic-failures.mdc · 86Cursor rulesshellgithub-actionssecurity48/1003 days ago
ivangrynenko/cursorrules.cursor/rules/drupal-database-standards.mdc · 86Cursor rulesshellgithub-actionsdatabase30/1003 days ago
ivangrynenko/cursorrules.cursor/rules/drupal-injection.mdc · 86Cursor rulesshellgithub-actionssecuritydo-not55/1003 days ago
ivangrynenko/cursorrules.cursor/rules/drupal-insecure-design.mdc · 86Cursor rulesshellgithub-actionssecurity48/1003 days ago
ivangrynenko/cursorrules.cursor/rules/drupal-integrity-failures.mdc · 86Cursor rulesshellgithub-actionsstyle60/1003 days ago
ivangrynenko/cursorrules.cursor/rules/drupal-logging-failures.mdc · 86Cursor rulesshellgithub-actionssecurity48/1003 days ago
ivangrynenko/cursorrules.cursor/rules/drupal-security-misconfiguration.mdc · 86Cursor rulesshellgithub-actionssecurity48/1003 days ago
ivangrynenko/cursorrules.cursor/rules/drupal-vulnerable-components.mdc · 86Cursor rulesshellgithub-actionsstylesecurity67/1003 days ago
ivangrynenko/cursorrules.cursor/rules/git-commit-standards.mdc · 86Cursor rulesshellgithub-actionsgit44/1003 days ago
ivangrynenko/cursorrules.cursor/rules/github-actions-standards.mdc · 86Cursor rulesshellgithub-actionsno sections44/1003 days ago
ivangrynenko/cursorrules.cursor/rules/improve-cursorrules-efficiency.mdc · 86Cursor rulesshellgithub-actionsno sections34/1003 days ago
ivangrynenko/cursorrules.cursor/rules/javascript-cryptographic-failures.mdc · 86Cursor rulesshellgithub-actionssecurity40/1003 days ago
Diff against .cursor/rules/accessibility-standards.mdc Diff against .cursor/rules/api-standards.mdc Diff against .cursor/rules/behat-steps.mdc Diff against .cursor/rules/build-optimization.mdc Diff against .cursor/rules/confluence-editing-standards.mdc Diff against .cursor/rules/debugging-standards.mdc Diff against .cursor/rules/docker-compose-standards.mdc Diff against .cursor/rules/drupal-broken-access-control.mdc Diff against .cursor/rules/drupal-cryptographic-failures.mdc Diff against .cursor/rules/drupal-database-standards.mdc Diff against .cursor/rules/drupal-injection.mdc Diff against .cursor/rules/drupal-insecure-design.mdc Diff against .cursor/rules/drupal-integrity-failures.mdc Diff against .cursor/rules/drupal-logging-failures.mdc Diff against .cursor/rules/drupal-security-misconfiguration.mdc Diff against .cursor/rules/drupal-vulnerable-components.mdc Diff against .cursor/rules/git-commit-standards.mdc Diff against .cursor/rules/github-actions-standards.mdc Diff against .cursor/rules/improve-cursorrules-efficiency.mdc Diff against .cursor/rules/javascript-cryptographic-failures.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4kCursor rulestypescriptnode+14buildtestlint-formatstyle+796/1003 days ago
nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49Cursor rulestypescriptcypress+14setupbuildteststyle+496/1003 days ago
skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4kCursor rulestypescriptnode+14teststylearchtypes+296/1003 days ago
skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4kCursor rulestypescriptnode+14buildtestlint-formatstyle+796/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack