-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathcompose.override.content-dev.yaml
More file actions
40 lines (37 loc) · 1.64 KB
/
compose.override.content-dev.yaml
File metadata and controls
40 lines (37 loc) · 1.64 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
##################################################################################################
# This Compose file provides the overrides needed to develop Labspace content.
#
# This variant will mount in the source content into the configurator, where it will then be
# copied into the volume that is shared with the rest of the labspace. This allows you to run through
# the lab, making changes to files, running startup scripts, and more without polluting the actual
# content. Compose Watch will monitor the content directory for changes and sync them into the
# workspace, which shares the volume with the interface.
#
# The CONTENT_PATH environment variable is being used here because we are unable to simply use
# a relative path (such as "./"). When running the Compose stack via a published OCI artifact,
# the working directory is not the same as the location of the Compose files, which is its cached
# location on the host filesystem. Therefore, the paths would not resolve correctly.
##################################################################################################
services:
configurator:
volumes:
- $CONTENT_PATH:/dev-content:ro
environment:
DEV_MODE: true
interface:
environment:
CONTENT_DEV_MODE: true
volumes:
# Remove the read-only flag since watch will be syncing changes
- labspace-instructions:/labspace/instructions
develop:
watch:
- path: $CONTENT_PATH/labspace
action: sync
target: /labspace/instructions
workspace:
develop:
watch:
- path: $CONTENT_PATH/project
action: sync
target: /home/coder/project