fix: folder volumes
This commit is contained in:
@@ -2,3 +2,5 @@
|
|||||||
*.zip
|
*.zip
|
||||||
plans/
|
plans/
|
||||||
modern-sk/
|
modern-sk/
|
||||||
|
data/
|
||||||
|
.DS_Store
|
||||||
|
|||||||
+6
-12
@@ -21,7 +21,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${POSTGRES_PORT:-5432}:5432" # exposed so host-run tests can reach it
|
- "${POSTGRES_PORT:-5432}:5432" # exposed so host-run tests can reach it
|
||||||
volumes:
|
volumes:
|
||||||
- pgdata:/var/lib/postgresql/data
|
- ./data/pgdata:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-mcma}"]
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-mcma}"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@@ -35,7 +35,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${REDIS_PORT:-6379}:6379"
|
- "${REDIS_PORT:-6379}:6379"
|
||||||
volumes:
|
volumes:
|
||||||
- redisdata:/data
|
- ./data/redisdata:/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
@@ -56,8 +56,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./mcma-backend:/app # live source (hot reload)
|
- ./mcma-backend:/app # live source (hot reload)
|
||||||
- /app/.venv # keep the image's venv, don't shadow it
|
- /app/.venv # keep the image's venv, don't shadow it
|
||||||
- media:/data/media
|
- ./data/media:/data/media
|
||||||
- transcode_cache:/data/transcode-cache
|
- ./data/transcode-cache:/data/transcode-cache
|
||||||
ports:
|
ports:
|
||||||
- "${API_PORT:-8000}:8000" # direct access for debugging / docs
|
- "${API_PORT:-8000}:8000" # direct access for debugging / docs
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -77,8 +77,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./mcma-backend:/app
|
- ./mcma-backend:/app
|
||||||
- /app/.venv
|
- /app/.venv
|
||||||
- media:/data/media
|
- ./data/media:/data/media
|
||||||
- transcode_cache:/data/transcode-cache
|
- ./data/transcode-cache:/data/transcode-cache
|
||||||
depends_on:
|
depends_on:
|
||||||
db: { condition: service_healthy }
|
db: { condition: service_healthy }
|
||||||
redis: { condition: service_healthy }
|
redis: { condition: service_healthy }
|
||||||
@@ -112,9 +112,3 @@ services:
|
|||||||
- api
|
- api
|
||||||
- webui
|
- webui
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
|
||||||
pgdata:
|
|
||||||
redisdata:
|
|
||||||
media:
|
|
||||||
transcode_cache:
|
|
||||||
|
|||||||
Reference in New Issue
Block a user