-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
70 lines (69 loc) · 2.13 KB
/
docker-compose.local.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "4"
volumes:
dist-volume:
node-modules-volume:
services:
npm_ci_deps:
build:
context: .
dockerfile: Dockerfile.localci
image: openebench-nuxt3:localci
user: ${DEV_UID:-0}:${DEV_GID:-0}
command: npm ci
volumes:
- ./assets:/app/assets:ro
- ./components:/app/components:ro
- ./config:/app/config:ro
- ./constants:/app/constants:ro
- ./layouts:/app/layouts:ro
- ./pages:/app/pages:ro
- ./plugins:/app/plugins:ro
- ./static:/app/static
- ./stores:/app/stores:ro
- ./stories:/app/stories:ro
- ./test:/app/test:ro
- ./vitest.config.ts:/app/vitest.config.ts:ro
- ./nuxt.config.js:/app/nuxt.config.js:ro
- ./package.json:/app/package.json:ro
- ./package-lock.json:/app/package-lock.json
- ./stylelint.config.js:/app/stylelint.config.js:ro
- ./server:/app/server:ro
- ./types:/app/types:ro
- ./tsconfig.json:/app/tsconfig.json:ro
- node-modules-volume:/app/node_modules
nuxt:
build:
context: .
dockerfile: Dockerfile.localci
image: openebench-nuxt3:localci
user: ${DEV_UID:-0}:${DEV_GID:-0}
depends_on:
npm_ci_deps:
condition: service_completed_successfully
restart: on-failure
volumes:
- ./assets:/app/assets:ro
- ./components:/app/components:ro
- ./constants:/app/constants:ro
- ./config:/app/config:ro
- ./layouts:/app/layouts:ro
- ./pages:/app/pages:ro
- ./plugins:/app/plugins:ro
- ./static:/app/static
- ./stores:/app/stores:ro
- ./stories:/app/stories:ro
- ./test:/app/test:ro
- ./vitest.config.ts:/app/vitest.config.ts:ro
- ./nuxt.config.js:/app/nuxt.config.js:ro
- ./package.json:/app/package.json:ro
- ./package-lock.json:/app/package-lock.json
- ./server:/app/server:ro
- ./types:/app/types:ro
- ./stylelint.config.js:/app/stylelint.config.js:ro
- ./tsconfig.json:/app/tsconfig.json:ro
- node-modules-volume:/app/node_modules
- dist-volume:/app/dist
ports:
- 3001:3001
environment:
- CHOKIDAR_USEPOLLING=true