forked from MarcelRaschke/metacpan-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (74 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
74 lines (74 loc) · 1.59 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
67
68
69
70
71
72
73
74
services:
web-asset-build:
build:
context: .
target: build-assets
volumes:
- './root/static/:/build/root/static/'
- 'web-assets:/build/root/assets/'
command: ['./build-assets.mjs', '--watch']
develop:
watch:
- path: ./build-assets.mjs
action: rebuild
- path: ./package.json
action: rebuild
web-server:
build:
context: .
target: develop
volumes:
- './:/app/'
- 'web-assets:/app/root/assets/'
- '/app/local'
ports:
- '5001:8000'
environment:
# default is 120, shorten to work with compose label
COLUMNS: 96
depends_on:
- web-asset-build
develop:
watch:
- path: ./cpanfile
action: rebuild
test:
profiles:
- test
build:
context: .
target: lint
secrets:
- github_token
volumes:
- './:/app/'
- 'web-assets:/app/root/assets/'
- '/app/local'
- '/app/node_modules'
- '${GIT_COMMON_DIR:-/dev/null}:${GIT_COMMON_DIR:-/dev/null}:ro'
environment:
COLUMNS: 96
init: true
stdin_open: true
tty: true
depends_on:
- web-asset-build
command: ['prove', '-lvr', 't']
playwright:
profiles:
- test
build:
context: .
target: playwright-test
volumes:
- './e2e/:/app/e2e/'
- './playwright.config.ts:/app/playwright.config.ts'
environment:
PLAYWRIGHT_BASE_URL: http://web-server:8000
depends_on:
- web-server
secrets:
github_token:
environment: GITHUB_TOKEN
volumes:
web-assets: