-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.test.yml
57 lines (53 loc) · 1.22 KB
/
docker-compose.test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Docker compose for testing, with mariadb, redis and mongo
version: "3.9"
name: ibs3_test
services:
mariadb:
image: mariadb
ports:
- "4401:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ibs3_test
MYSQL_ROOT_HOST: "%"
# healthcheck:
# test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
# interval: 3s
# timeout: 3s
# retries: 25
# redis:
# image: redis
# ports:
# - "4402:6379"
# healthcheck:
# test: ['CMD', 'redis-cli', 'ping']
# interval: 1s
# timeout: 3s
# retries: 30
# mongodb:
# image: mongo
# ports:
# - "4403:27017"
# healthcheck:
# test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"]
# interval: 1s
# timeout: 3s
# retries: 30
ibs3:
build:
context: .
dockerfile: Dockerfile.test
depends_on:
- mariadb
# redis:
# condition: service_healthy
# mongodb:
# condition: service_healthy
network_mode: "host"
env_file:
- .env.test
command: sh -c " sleep 30 && \
npx prisma migrate deploy && \
npx tsx e2e/seed.ts && \
npm run build && \
npx playwright test"