services: swiper: build: . container_name: swiper # --- Environment overrides ------------------------------------------------ # Set the port and the internal image directories list. The example below # assumes two folders mounted at /media/Portrait and /media/Landscape inside # the container. Adjust IMAGE_DIRS (colon-separated) and the volume mounts # to reflect your own paths. environment: - PORT=8888 - IMAGE_DIRS=/media/Portrait:/media/Landscape # Directory inside the container where the SQLite DB will live - DATA_DIR=/data # ------------------------------------------------------------------------- # Map host port -> container port ports: - "8888:8888" # ------------------------------------------------------------------------- # Volumes # • Mount the host image folders into /media/ inside the container # • Optionally mount a customised config.py to override defaults at build # ------------------------------------------------------------------------- volumes: - /mnt/secret-items/sd-outputs/Sorted/Images/Portrait:/media/Portrait:ro - /mnt/secret-items/sd-outputs/Sorted/Images/Landscape:/media/Landscape:ro # Host data directory → container /data (holds image_selections.db) - ./data:/data # Uncomment the line below if you maintain a custom config.py alongside # the compose file and want to override the image copy at runtime. - ./config.py:/app/config.py:ro