generated from uw-it-aca/django-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (49 loc) · 1.18 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
44
45
46
47
48
49
50
version: '3.4'
services:
app:
build:
context: .
target: app-container
restart: always
container_name: compass_app
environment:
ENV: localdev
AUTH: SAML_MOCK
GOOGLE_ANALYTICS_KEY: ${GOOGLE_ANALYTICS_KEY}
GWS_ENV: Mock
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
volumes:
- ./compass:/app/compass
- statics-volume:/static
ports:
- "${RUNSERVER_PORT:-8000}:8000"
stdin_open: true
tty: true
depends_on:
- postgres
node-bundler:
build:
context: .
target: node-bundler
restart: always
container_name: compass_node
ports:
- "${BUNDLE_ANALYZER_PORT:-8888}:8888" # Required when environment.BUNDLE_ANALYZER is true
environment:
NODE_ENV: development
VUE_DEVTOOLS: "True"
BUNDLE_ANALYZER: "True"
volumes:
- ./compass:/app/compass # expose main django app so webpack-loader can output bundles here
- ./compass_vue:/app/compass_vue
- statics-volume:/static
command: npm run watch
stdin_open: true
tty: true
postgres:
image: postgres:14
environment:
POSTGRES_PASSWORD: postgres
volumes:
statics-volume: