-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
40 lines (36 loc) · 974 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
# -------------------------------------------------- #
# Note: this file originates in template-action-node #
# -------------------------------------------------- #
services:
# ---- mega-linter ---- #
lint:
profiles: ["dev"]
image: oxsecurity/megalinter-javascript:v7.3.0
volumes:
- ./:/tmp/lint
environment:
MEGALINTER_CONFIG: .github/linters/.mega-linter.yml
REPORT_OUTPUT_FOLDER: none
VALIDATE_ALL_CODEBASE: true
# ---- readme generator ---- #
readme:
profiles: ["dev"]
image: pandoc/minimal:2.19
volumes:
- ./:/data
command: --defaults=.pandoc.yml
app: &app
profiles: ["app"]
image: node:alpine
tty: true
volumes:
- type: bind
source: .
target: /app
working_dir: /app
command: npm --no-update-notifier run start
test:
<<: *app
profiles: ["test"]
image: node:alpine
command: npm --no-update-notifier run test -- --reporter=classic