-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-ci.yml
41 lines (39 loc) · 1.2 KB
/
docker-compose-ci.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
services:
decoder:
build:
context: ./
dockerfile: ./Dockerfile.ci
command: ["/usr/bin/npm", "run", "ci"]
environment:
NODE_ENV: test
KNEX_DRIVER: mysql2
KNEX_DATABASE: test
KNEX_HOST: mysql
KNEX_USER: test
KNEX_PASSWORD: test
RUN_INTEGRATION_TESTS: "true"
depends_on:
- mysql
volumes:
- './src:/srv/service/src:ro'
- './test:/srv/service/test:ro'
- './.c8rc.json:/srv/service/.c8rc.json:ro'
- './.eslintignore:/srv/service/.eslintignore:ro'
- './.eslintrc.json:/srv/service/.eslintrc.json:ro'
- './.prettierignore:/srv/service/.prettierignore:ro'
- './.prettierrc.json:/srv/service/.prettierrc.json:ro'
- './.mocharc.cjs:/srv/service/.mocharc.cjs:ro'
- './mocha.setup.mjs:/srv/service/mocha.setup.mjs:ro'
- './coverage:/srv/service/coverage'
mysql:
image: mariadb:latest@sha256:a9547599cd87d7242435aea6fda22a9d83e2c06d16c658ef70d2868b3d3f6a80
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_INITDB_SKIP_TZINFO: "1"
volumes:
- mysql_data:/var/lib/mysql
volumes:
mysql_data: