-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
55 lines (49 loc) · 1.22 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ---------------------------------------------------- #
# Note: this file originates in template-action-docker #
# ---------------------------------------------------- #
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
# ---- action container ---- #
action:
profiles: ["action"]
build: .
action-test:
extends: action
profiles: ["action"]
volumes:
- ./test:/github/workspace/test
- .git:/github/workspace/.git
env_file:
- .env
# ---- main container ---- #
app:
profiles: ["app"]
image: node:20-alpine
working_dir: /app
entrypoint: npm --no-update-notifier --no-fund --no-audit
command: start
tty: true
volumes:
- ./:/app
env_file:
- .env
app-test:
extends: app
profiles: ["test"]
command: run test:ci -- --reporter=classic