-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
41 lines (40 loc) · 1018 Bytes
/
docker-compose.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
version: '3.8'
services:
pgsql:
image: postgres:15
restart: on-failure
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
volumes:
- database:/var/lib/postgresql/data
mysql:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
restart: on-failure
environment:
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: test
MYSQL_ROOT_PASSWORD: test
volumes:
- database:/var/lib/postgresql/data
healthcheck:
test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', 'root', '-p$$MYSQL_ROOT_PASSWORD']
interval: 1s
timeout: 1s
retries: 15
tests:
image: node:19
working_dir: /kiss-orm
depends_on:
pgsql:
condition: service_started
mysql:
condition: service_healthy
command: npx ts-node ./node_modules/jasmine/bin/jasmine --config=jasmine.json
volumes:
- $PWD:/kiss-orm
volumes:
database: