-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 993 Bytes
/
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
version: '3.4'
services:
app:
build:
context: .
target: app-container
restart: always
container_name: app_name_app
environment:
- GOOGLE_ANALYTICS_KEY=${GOOGLE_ANALYTICS_KEY}
volumes:
- ./app_name:/app/app_name
- statics-volume:/static
ports:
- "${RUNSERVER_PORT:-8000}:8000"
stdin_open: true
tty: true
node-bundler:
build:
context: .
target: node-bundler
restart: always
container_name: app_name_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:
- ./app_name:/app/app_name # expose main django app so vite can output bundles here
- ./app_name_vue:/app/app_name_vue
- statics-volume:/static
command: npm run watch
stdin_open: true
tty: true
volumes:
statics-volume: