-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.dev.yml
27 lines (23 loc) · 1.04 KB
/
compose.dev.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
version: '3.4'
services:
data-server:
image: "nsidc/snow-today-webapp-server:dev"
build: "."
volumes: !override
# TODO: This entry is copied from the main compose file to override as rw
# read-only, the subdirs will fail to mount!
- "${STORAGE_DIR:?STORAGE_DIR must be set}/live:/usr/share/nginx/html:rw"
# In case we're developing this data, mount in the repo versions instead
# of requiring a full ingest for each change!
- "./static/variables.json:/usr/share/nginx/html/snow-surface-properties/variables.json:ro"
- "./static/colormaps.json:/usr/share/nginx/html/snow-surface-properties/colormaps.json:ro"
restart: "on-failure"
ingest:
image: "nsidc/snow-today-webapp-server-ingest:dev"
build:
context: "."
dockerfile: "Dockerfile.ingest"
volumes:
- "./snow_today_webapp_ingest:/snow-today-webapp-server-ingest/snow_today_webapp_ingest:ro"
- "./static:/snow-today-webapp-server-ingest/static:rw"
- "./schema:/snow-today-webapp-server-ingest/schema:ro"