-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
43 lines (42 loc) · 1.06 KB
/
docker-compose.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
version: '3.4'
services:
app:
build:
context: .
target: app-container
restart: always
container_name: myuw_app
volumes:
- ./myuw:/app/myuw
- statics-volume:/static
ports:
- "${RUNSERVER_PORT:-8000}:8000"
environment:
ENV: localdev
AUTH: SAML_MOCK
#PORT: ${PORT:-8000}
stdin_open: true
tty: true
node-bundler:
build:
context: .
target: node-bundler
restart: always
container_name: myuw_node
ports:
- "${BUNDLE_ANALYZER_PORT:-8888}:8888" # Required when environment.BUNDLE_ANALYZER is true
environment:
NODE_ENV: development
ENV: localdev
VUE_DEVTOOLS: "True"
BUNDLE_ANALYZER: "True"
volumes:
- ./myuw:/app/myuw # expose main django app so webpack-loader can output bundles here
- ./myuw_vue:/app/myuw_vue
- statics-volume:/static
#command: bash -c "cd /app/ && ./node_modules/.bin/webpack --watch"
command: npx webpack --watch --mode=development
stdin_open: true
tty: true
volumes:
statics-volume: