2023-12-19 14:32:39 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
db:
|
2024-01-04 14:45:15 +00:00
|
|
|
image: db:test
|
2023-12-19 14:32:39 +00:00
|
|
|
restart: always
|
|
|
|
build:
|
|
|
|
context: db
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
front:
|
2024-01-04 14:45:15 +00:00
|
|
|
image: front
|
2023-12-19 14:32:39 +00:00
|
|
|
restart: always
|
2024-01-12 09:49:02 +00:00
|
|
|
command: ["npx", "jest", "--ci", "--maxWorkers=2"]
|
2023-12-19 14:32:39 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: front/Dockerfile.test
|
2024-01-15 08:00:38 +00:00
|
|
|
# depends_on:
|
|
|
|
# - back
|
2023-12-19 14:32:39 +00:00
|
|
|
back:
|
2024-01-04 14:45:15 +00:00
|
|
|
image: back
|
2023-12-19 14:32:39 +00:00
|
|
|
restart: always
|
2024-01-12 09:49:02 +00:00
|
|
|
command: ["node", "back/tests.js", "ci"]
|
2023-12-19 14:32:39 +00:00
|
|
|
build:
|
|
|
|
context: .
|
2023-12-21 14:29:47 +00:00
|
|
|
dockerfile: back/Dockerfile
|
|
|
|
target: test
|
2023-12-19 14:32:39 +00:00
|
|
|
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
|