-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
76 lines (74 loc) · 2.07 KB
/
docker-compose.yaml
File metadata and controls
76 lines (74 loc) · 2.07 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
75
76
services:
web-production:
profiles: [production]
build:
context: .
target: production
args:
- DIST_URL=${DIST_URL:?error}
- VERSION=${VERSION}
ports:
- "8080:80"
# If you want to debug a production profile,
# you can use `--profile production --watch`
develop:
watch:
- action: rebuild
path: ./src
- action: rebuild
path: ./res
- action: rebuild
path: package-lock.json
- action: rebuild
path: ./vite.config.ts
- action: sync+restart
path: nginx.conf
target: /etc/nginx/conf.d/default.conf
web-production-userscript:
profiles: [production-userscript]
build:
context: .
target: production
args:
- DIST_URL=${DIST_URL:?error}
- USERSCRIPT_NAME=${USERSCRIPT_NAME:?error}
- USERSCRIPT_ICON_URL=${USERSCRIPT_ICON_URL:?error}
- USERSCRIPT_FILENAME=${USERSCRIPT_FILENAME:?error}
- VERSION=${VERSION}
ports:
- "8080:80"
# If you want to debug a production-userscript profile,
# you can use `--profile production-userscript --watch`
develop:
watch:
- action: rebuild
path: ./src
- action: rebuild
path: ./res
- action: rebuild
path: package-lock.json
- action: rebuild
path: ./vite.config.ts
- action: sync+restart
path: nginx.conf
target: /etc/nginx/conf.d/default.conf
web-development:
profiles: [development]
build:
context: .
target: development
ports:
- "8080:8080"
environment:
- DIST_URL=${DIST_URL:-http://localhost:8080/}
- USERSCRIPT_NAME=${USERSCRIPT_NAME:-'DEV Nerthus Addon'}
- USERSCRIPT_ICON_URL=${USERSCRIPT_ICON_URL:-${DIST_URL}res/img/widget-icon.gif}
- USERSCRIPT_FILENAME=${USERSCRIPT_FILENAME:-nerthus-addon.user.js}
volumes:
- type: bind
source: .
target: /app
develop:
watch:
- action: rebuild
path: package-lock.json