forked from cc-archive/vue-vocabulary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (44 loc) · 1.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (44 loc) · 1.47 KB
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
51
52
##############################
# Development Docker Compose #
##############################
# This is the version of the Docker Compose standard
version: '3.4'
services:
# The website is the landing page for the CC Vocabulary project
website:
# Use the CC Vocabulary image
image: ccvocabulary:latest
# If the image is not found, build it
build: .
# The command to run in the container
command: npm run serve:website
# Volumes attached to the container
volumes:
# Enable code changes to reflect in the container
- .:/codebase
# Ensures that host node_modules are not mounted
- node_modules:/codebase/node_modules
ports:
# Map 8080 in the container to the same port on the host
- 8080:8080
# The documentation is the guide on how to use CC Vocabulary components
documentation:
# Use the CC Vocabulary image
image: ccvocabulary:latest
# If the image is not found, build it
build: .
# The command to run in the container
command: npm run serve:styleguide
# Volumes attached to the container
volumes:
# Enable code changes to reflect in the container
- .:/codebase
# Ensures that host node_modules are not mounted
- node_modules:/codebase/node_modules
ports:
# Map 6060 in the container to the same port on the host
- 6060:6060
volumes:
# Holds the node_modules directory
# Prevents the host node_modules from being mounted and used
node_modules: