-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
53 lines (52 loc) · 1.56 KB
/
docker-compose.yaml
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
services:
web-production:
profiles: [ production ]
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}
- NI_FILENAME=${NI_FILENAME:?error}
- SI_FILENAME=${SI_FILENAME:?error}
ports:
- "8080:80"
# If you want to debug 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: ./webpack.config.mjs
- 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}
- NI_FILENAME=${NI_FILENAME:-nerthus-addon-NI.js}
- SI_FILENAME=${SI_FILENAME:-nerthus-addon-SI.js}
volumes:
- type: bind
source: .
target: /app
develop:
watch:
- action: rebuild
path: package-lock.json