You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/docker-compose.test.yml

43 lines
988 B

services:
postgres:
image: postgres:14
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: wabosign_test
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
tmpfs: /var/lib/postgresql/data
test:
build:
context: .
dockerfile: Dockerfile.test
depends_on:
postgres:
condition: service_healthy
environment:
RAILS_ENV: test
NODE_ENV: test
DATABASE_URL: postgres://postgres:postgres@postgres:5432/wabosign_test
CHROME_PATH: /usr/bin/google-chrome-stable
HEADLESS: "true"
volumes:
- .:/app
- bundle_cache:/usr/local/bundle
- node_modules_cache:/app/node_modules
- packs_cache:/app/public/packs-test
working_dir: /app
entrypoint: [""]
command: ["bin/docker-test"]
volumes:
bundle_cache:
node_modules_cache:
packs_cache: