Files
pack/examples/ruby-rails-postgres/docker-compose.yml
T
Michael BiancoandGitHub 5af6e64f28 test: support docker compose services in integration test (#307)
* test: add docker-compose where postgres is required

* test: http checks where postgres is required

* test: run docker-compose services if they exist in an example project

* test: remove justBuild from django test

* test: snapshot update

* fix: add PORT with default to django gunicorn start command

* test: add bin/rails

* test: update rails with postgres test to have a valid root route

* docs: integration test documentation
2025-10-22 14:09:39 -06:00

13 lines
307 B
YAML

services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: rails_db
POSTGRES_USER: rails_user
POSTGRES_PASSWORD: rails_password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U rails_user -d rails_db"]
interval: 5s
timeout: 5s
retries: 10