Files
MilkyShots/docker-compose.yml
REDCODE b813c32756 fix(#62): lock body scroll when modal forms open to prevent position:fixed breakage on mobile
- PersonForm and AlbumForm now call lockBodyScroll/unlockBodyScroll via JS
  when Show state changes, preventing the body scroll context from
  interfering with position:fixed on mobile browsers
- added minimal mobile CSS: align-items:flex-start, padding-top, and
  reduced max-height:85vh on modal-content for small viewports
- safe disposal: unlocks body scroll on DisposeAsync if modal was open
2026-07-09 22:54:57 +02:00

68 lines
1.8 KiB
YAML

services:
lactose:
image: lactose
container_name: lactose
build:
#context: ./Lactose
context: .
dockerfile: Lactose/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT}
# CorsAllowedOrigins must be the URL the *browser* uses to reach MilkStream.
# Use semicolons to specify multiple origins (e.g. http://host1;http://host2).
# Override this with your server's hostname/IP if not running on localhost.
#- CorsAllowedOrigins=http://localhost:8080
- CorsAllowedOrigins=*
ports:
- "5162:8080"
depends_on:
database:
condition: service_healthy
restart: unless-stopped
volumes:
#- "/root/MilkyShots/storageImages:/diary:ro"
- "./storageImages:/diary:ro"
- "thumbs:/app/thumbnails"
- "previews:/app/previews"
database:
#image: tensorchord/pgvecto-rs:pg17-v0.4.0
image: pgvector/pgvector:pg17-trixie
container_name: database
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: testOnlyDb
POSTGRES_DB: TestDb
volumes:
- "pg_dbdata:/var/lib/postgresql/data"
ports:
- "3306:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U root -d TestDb"]
interval: 3s
timeout: 5s
retries: 10
start_period: 10s
restart: unless-stopped
milkstream:
image: milkstream
container_name: milkstream
depends_on:
- lactose
build:
context: .
dockerfile: MilkStream/Dockerfile
environment:
# LactoseBaseUrl must be the address the *browser* can reach Lactose at.
# Override this with your server's hostname/IP if not running on localhost.
- LactoseBaseUrl=http://192.168.50.100:5162/
ports:
- "8080:8080"
restart: unless-stopped
volumes:
pg_dbdata:
thumbs:
previews: