2023-12-19 14:32:39 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
2023-12-21 14:29:47 +00:00
|
|
|
# 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
|
2023-12-19 14:32:39 +00:00
|
|
|
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
|
2024-01-04 14:45:15 +00:00
|
|
|
ports:
|
|
|
|
- 3306:3306
|
2023-12-19 14:32:39 +00:00
|
|
|
front:
|
2024-01-04 14:45:15 +00:00
|
|
|
image: front
|
2023-12-19 14:32:39 +00:00
|
|
|
restart: always
|
2024-01-08 14:47:47 +00:00
|
|
|
command: ["npx", "jest", "--ci --maxWorkers=2"]
|
2023-12-19 14:32:39 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: front/Dockerfile.test
|
|
|
|
depends_on:
|
|
|
|
- back
|
|
|
|
back:
|
2024-01-04 14:45:15 +00:00
|
|
|
image: back
|
2023-12-19 14:32:39 +00:00
|
|
|
restart: always
|
|
|
|
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-08 14:47:47 +00:00
|
|
|
e2e:
|
|
|
|
image: e2e
|
|
|
|
restart: always
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: e2e/Dockerfile
|
|
|
|
environment:
|
|
|
|
- NODE_ENV
|
|
|
|
depends_on:
|
|
|
|
- front
|
2023-12-19 14:32:39 +00:00
|
|
|
|
2024-01-08 14:47:47 +00:00
|
|
|
# networks:
|
|
|
|
# stack-network:
|
|
|
|
# driver: host
|
2023-12-19 14:32:39 +00:00
|
|
|
|