services: lint: build: context: . dockerfile: Dockerfile.ci command: sh -c "bundle exec rubocop && bundle exec erb_lint ./app && yarn eslint 'app/javascript/**/*.js'" brakeman: build: context: . dockerfile: Dockerfile.ci command: bundle exec brakeman -q --exit-on-warn rspec: build: context: . dockerfile: Dockerfile.ci command: sh -c "bundle exec rake db:create db:migrate && bundle exec rake assets:precompile && bundle exec rspec" depends_on: postgres: condition: service_healthy environment: RAILS_ENV: test NODE_ENV: test DATABASE_URL: postgres://postgres:postgres@postgres:5432/docuseal_test postgres: image: postgres:18 environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: docuseal_test healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 tmpfs: - /var/lib/postgresql