harden media
This commit is contained in:
@@ -35,8 +35,10 @@ services:
|
||||
- .env.development
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
- GRIDPILOT_API_PERSISTENCE=${GRIDPILOT_API_PERSISTENCE:-}
|
||||
- GRIDPILOT_API_FORCE_RESEED=${GRIDPILOT_API_FORCE_RESEED:-}
|
||||
# IMPORTANT: do not override values provided by env_file (.env.development).
|
||||
# Using ${VAR:-} here expands to an empty string when VAR is not set in the
|
||||
# host shell, which *overrides* env_file and disables force reseed.
|
||||
- MEDIA_STORAGE_DIR=/data/media
|
||||
ports:
|
||||
- "3001:3000"
|
||||
- "9229:9229"
|
||||
@@ -44,6 +46,7 @@ services:
|
||||
- ./:/app
|
||||
- dev_node_modules:/app/node_modules
|
||||
- dev_npm_cache:/root/.npm
|
||||
- dev_media_data:/data/media
|
||||
command: ["sh", "-lc", "echo '[api] Waiting for dependencies...'; npm run start:dev"]
|
||||
depends_on:
|
||||
deps:
|
||||
@@ -119,4 +122,5 @@ networks:
|
||||
volumes:
|
||||
dev_db_data:
|
||||
dev_node_modules:
|
||||
dev_npm_cache:
|
||||
dev_npm_cache:
|
||||
dev_media_data:
|
||||
|
||||
Reference in New Issue
Block a user