AGENTS.md
docker/dev/AGENTS.mdAGENTS.md
Quality
74/100
Scores the file, not the repository.Length
326 words
13 headings · 2 code blocksRepository
16k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# Docker Development23The Docker development environment uses configurations in `docker/dev/` and the `bin/compose` wrapper script.45## Setup67```bash8# Initial setup (first time only)9bin/compose setup # Installs backend and frontend dependencies1011# Starting services12bin/compose start # Start backend and frontend in background13bin/compose run # Start frontend in background, backend in foreground (for debugging with pry)1415# Running tests16bin/compose rspec spec/models/user_spec.rb # Run specific tests in backend-test container1718# Other operations19bin/compose reset # Remove all containers and volumes (requires setup again)20bin/compose <command> # Pass any docker-compose command directly21```2223## Important Notes2425- **CRITICAL**: `config/database.yml` must NOT exist when using Docker (rename or delete it)26- Most developers use a local `docker-compose.override.yml` for custom port mappings and configurations27- Copy `docker-compose.override.example.yml` to `docker-compose.override.yml` and customize as needed28- Default ports: Backend at http://localhost:3000 (or 4200 for frontend dev server)29- Services: `backend`, `frontend`, `worker`, `db`, `db-test`, `backend-test`, `cache`30- Persisted volumes: `pgdata`, `bundle`, `npm`, `tmp`, `opdata` (data survives container restarts)31- Docker build context: Uses Dockerfiles in `docker/dev/backend/` and `docker/dev/frontend/`3233## Commands Reference3435```bash36# Setup and lifecycle37bin/compose setup # Setup Docker environment (first time)38bin/compose start # Start all services in background39bin/compose run # Start frontend in background, backend in foreground40bin/compose reset # Remove all containers and volumes41bin/compose stop # Stop all services42bin/compose down # Stop and remove containers4344# Testing45bin/compose rspec spec/models/user_spec.rb # Run specific tests46bin/compose exec backend bundle exec rspec # Run tests directly in backend container4748# Development49bin/compose exec backend bundle exec rails console # Rails console50bin/compose logs backend # View backend logs51bin/compose logs -f backend # Follow backend logs52bin/compose ps # List running containers5354# Database55bin/compose exec backend bundle exec rails db:migrate # Run migrations56bin/compose exec backend bundle exec rails db:seed # Seed data5758# Direct docker-compose commands59bin/compose up -d # Start services60bin/compose restart backend # Restart backend service61```62
Also in opf/openproject
Diff this repo’s formatsOne 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?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| opf/openproject.github/copilot-instructions.md · 16k | Copilot instructions | setuplint-formatgitdatabase+1 | 73/100 | 3 days ago | |
| opf/openprojectAGENTS.md · 16k | AGENTS.md | setuplint-formatarchtypes+3 | 90/100 | 3 days ago | |
| opf/openprojectapp/AGENTS.md · 16k | AGENTS.md | stylearch | 52/100 | 3 days ago | |
| opf/openprojectconfig/AGENTS.md · 16k | AGENTS.md | no sections | 46/100 | 3 days ago | |
| opf/openprojectdb/AGENTS.md · 16k | AGENTS.md | styledatabase | 55/100 | 3 days ago | |
| opf/openprojectfrontend/AGENTS.md · 16k | AGENTS.md | setuptestlint-formatstyle+3 | 88/100 | 3 days ago | |
| opf/openprojectspec/AGENTS.md · 16k | AGENTS.md | teststylearch | 77/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| rails/railsAGENTS.md · 59k | AGENTS.md | teststylearchgit+4 | 100/100 | 3 days ago | |
| react/react-nativepackages/react-native-compatibility-check/AGENTS.md · 126k | AGENTS.md | testlint-formatstylearch+4 | 99/100 | 3 days ago | |
| dotCMS/corecore-web/apps/dotcms-ui/AGENTS.md · 950 | AGENTS.md | buildteststyledependencies+3 | 94/100 | 3 days ago | |
| Freika/dawarichAGENTS.md · 10.0k | AGENTS.md | buildtestlint-formatstyle+4 | 94/100 | 2 days ago | |
| akodkod/operandiAGENTS.md · 73 | AGENTS.md | buildteststyletesting-strategy+3 | 93/100 | 3 days ago | |
| opf/openprojectAGENTS.md · 16k | AGENTS.md | setuplint-formatarchtypes+3 | 90/100 | 3 days ago | |
| rubocop/rubocopAGENTS.md · 13k | AGENTS.md | stylearchgitagent-behaviour+1 | 90/100 | 3 days ago |
