forked from dresende/node-orm2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
66 lines (61 loc) · 1.6 KB
/
docker-compose.test.yml
File metadata and controls
66 lines (61 loc) · 1.6 KB
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
58
59
60
61
62
63
64
65
66
version: "3.9"
services:
mysql:
image: mysql:8.3
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: orm_test
MYSQL_ROOT_HOST: "%"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-pexample"]
interval: 5s
timeout: 3s
retries: 40
start_period: 10s
postgres:
image: postgres:16
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: orm_test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d orm_test"]
interval: 5s
timeout: 3s
retries: 40
start_period: 10s
networks:
default:
aliases:
- redshift
questdb:
image: questdb/questdb:latest
environment:
QDB_PG_ENABLED: "true"
QDB_PG_READONLY_USER_ENABLED: "false"
QDB_PG_USER: admin
QDB_PG_PASSWORD: quest
test-runner:
image: node:24
working_dir: /workspace
volumes:
- .:/workspace
environment:
MYSQL_DB_URL: mysql://root:example@mysql:3306/orm_test
POSTGRES_DB_URL: postgres://postgres:example@postgres:5432/orm_test
REDSHIFT_DB_URL: redshift://postgres:example@redshift:5432/orm_test
QUESTDB_DB_URL: questdb://admin:quest@questdb:8812/qdb
CI: "1"
depends_on:
mysql:
condition: service_healthy
postgres:
condition: service_healthy
questdb:
condition: service_started
command: >-
bash -lc "npm ci && npm run build && make test"
networks:
default:
name: orm3-test-net