-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.override.yml
32 lines (29 loc) · 1.11 KB
/
docker-compose.override.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
version: "3.6"
services:
www_builder:
build:
context: .
dockerfile: Dockerfile.new
volumes:
- .:/usr/src/app
- node_modules:/usr/src/app/node_modules
# Mount directories containing the desired verticals (if needed)
# - path/to/verticals/my_vertical/www:/usr/src/app/src/verticals/my_vertical
# Or copy the required verticals inside the verticals directory
# and mount that. Remember not to override the index.js file
# - path/to/verticals:/usr/src/app/src/verticals
command: npm run-script builder-watcher
www:
image: geographica/nginx4dev:js
volumes:
- ./public:/usr/share/nginx/html
- .:/usr/share/nginx/html/src
# Mount directories containing the desired verticals (if needed)
# - path/to/verticals/my_vertical/www:/usr/share/nginx/html/src/src/verticals/my_vertical
# Or copy the required verticals inside the verticals directory
# and mount that. Remember not to override the index.js file
# - path/to/verticals:/usr/share/nginx/html/src/src/verticals
ports:
- "8085:80"
volumes:
node_modules: