61 lines
1.4 KiB
YAML
61 lines
1.4 KiB
YAML
version: "3.7"
|
|
services:
|
|
# node_modules:
|
|
# image: node:20-bullseye-slim
|
|
# command: npm install --ci
|
|
# working_dir: /salix
|
|
# volumes:
|
|
# - .:/salix
|
|
# print:
|
|
# image: node:20-bullseye-slim
|
|
# # command: cd print && npm install --ci
|
|
# working_dir: /salix/print
|
|
# volumes:
|
|
# - ./print:/salix/print
|
|
db:
|
|
image: db:test
|
|
restart: always
|
|
build:
|
|
context: db
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- 3308:3306
|
|
front:
|
|
image: front
|
|
restart: always
|
|
command: ["npx", "jest", "--ci", "--maxWorkers=2"]
|
|
ports:
|
|
- 5000:5000
|
|
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
|
|
e2e:
|
|
image: e2e
|
|
restart: always
|
|
build:
|
|
context: .
|
|
dockerfile: e2e/Dockerfile
|
|
environment:
|
|
- NODE_ENV
|
|
depends_on:
|
|
- front
|
|
|
|
# networks:
|
|
# stack-network:
|
|
# driver: host
|
|
|