|
@@ -182,12 +182,14 @@ services:
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
|
|
|
|
webapp:
|
|
webapp:
|
|
- image: node:latest
|
|
|
|
|
|
+ build: webapp
|
|
|
|
+ environment:
|
|
|
|
+ - DESECSTACK_DOMAIN
|
|
volumes:
|
|
volumes:
|
|
- ./webapp/:/usr/src/app/
|
|
- ./webapp/:/usr/src/app/
|
|
- webapp_dist:/usr/src/app/dist
|
|
- webapp_dist:/usr/src/app/dist
|
|
working_dir: /usr/src/app/
|
|
working_dir: /usr/src/app/
|
|
- command: bash -c "npm install && npm run build -- --no-clean"
|
|
|
|
|
|
+ command: bash -c "cat src/env.js.template | envsubst > src/env.js && npm install && npm run build -- --no-clean"
|
|
logging:
|
|
logging:
|
|
driver: "syslog"
|
|
driver: "syslog"
|
|
options:
|
|
options:
|