29 lines
660 B
YAML
29 lines
660 B
YAML
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
|
|
target: test
|
|
back:
|
|
image: back
|
|
restart: always
|
|
command: ["node", "back/tests.js", "ci"]
|
|
build:
|
|
context: .
|
|
dockerfile: back/Dockerfile
|
|
target: test
|
|
environment:
|
|
- NODE_ENV
|
|
depends_on:
|
|
- db
|