You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,26 @@ docker run -d -p 8080:80 \
77
77
78
78
When `PROCESS_ALL_DATA_FIRST_TIME=true` is set, the container will process events at startup before starting the Nginx server. It processes recent events from the realtime data directory first, then starts a full rebuild in the background; the full rebuild also includes `data_storage` when mounted.
`DATA_MOVE_DAYS` is applied only to full rebuilds: the daily cron full rebuild
94
+
and the second startup pass triggered by `PROCESS_ALL_DATA_FIRST_TIME=true`.
95
+
Incremental runs (`-l`) never move data. `DATA_MOVE_NO_MOVE_IDS` must be an
96
+
absolute path inside the container to a readable text file with one protected
97
+
event ID per line. The file can be edited while the container is running; the
98
+
next full rebuild reads the updated contents.
99
+
80
100
**Run with a specific environment profile (e.g. EU):**
81
101
```bash
82
102
docker run -d -p 8080:80 \
@@ -93,6 +113,8 @@ docker run -d -p 8080:80 \
93
113
|`ENABLE_CRONTAB`| Enable automated event processing via cron |`false`|`true`|
94
114
|`PROCESS_ALL_DATA_FIRST_TIME`| Process all events at container startup |`false`|`true`|
95
115
|`SHAKEMAP_ENV`| Environment profile to load (`ingv`, `eu`, or custom) |`ingv`|`eu`|
116
+
|`DATA_MOVE_DAYS`| Move realtime event directories older than this many days during full rebuilds | unset |`100`|
117
+
|`DATA_MOVE_NO_MOVE_IDS`| Absolute container path to a file with event IDs that must not be moved | unset |`/usr/share/nginx/html/EVENTID_DO_NOT_MOVE.txt`|
96
118
97
119
**Notes:**
98
120
- All environment variables are optional. If not set, the INGV defaults from `js/config-base.js` are used.
@@ -161,9 +183,11 @@ the destination already exists in `data_storage/`, it is overwritten.
161
183
162
184
Protect selected event IDs from moving with `--no-move`:
0 commit comments