salix/docker-compose.test.yml

40 lines
896 B
YAML
Raw Normal View History

version: "3.7"
services:
db:
image: db:test
restart: always
build:
context: db
dockerfile: Dockerfile
front:
image: front
restart: always
command: ["npx", "jest", "--ci", "--maxWorkers=2"]
build:
context: .
dockerfile: front/Dockerfile.test
# depends_on:
# - back
back:
image: back
restart: always
command: ["node", "back/tests.js", "ci"]
build:
context: .
dockerfile: back/Dockerfile
target: test
environment:
- NODE_ENV
depends_on:
- db
2024-01-16 08:01:49 +00:00
e2e:
image: e2e
restart: always
build:
context: .
dockerfile: e2e/Dockerfile
environment:
- NODE_ENV
depends_on:
- front