version: '3.8' services: web: build: context: . dockerfile: Dockerfile image: bbbg-auto-generator:latest container_name: bbbg_auto_generator ports: - "8000:8000" volumes: # Persist SQLite database and configurations - ./bbbg_auto_tool/data:/app/data # Mount templates so they can be modified on the host - ./bbbg_auto_tool/templates:/app/templates # Mount output folder to easily access generated files locally - ./bbbg_auto_tool/output:/app/output # ========================================================================= # MOUNTING OPTION A: Host Directory Mount (Recommended for Windows) # Create "network_share_1" and "network_share_2" local folders in your project # directory, and map them to your shared folder or mount points on the host. # ========================================================================= # - ./network_share_1:/app/network_share_1 # - ./network_share_2:/app/network_share_2 # ========================================================================= # MOUNTING OPTION B: Native Docker CIFS/SMB Volume # Uncomment this if you want the container to connect directly to the SMB share. # Make sure to uncomment the volumes block at the bottom of the file! # ========================================================================= - cifs_share_1:/app/network_share_1 - cifs_share_2:/app/network_share_2 environment: - PYTHONUNBUFFERED=1 - PORT=8000 - SCAN_DIR_1=/app/network_share_1 - SCAN_DIR_2=/app/network_share_2 - OUTPUT_SHARE_DIR=/app/network_share_2 restart: unless-stopped # ========================================================================= # Named CIFS/SMB Volumes for Option B # ========================================================================= volumes: cifs_share_1: driver: local driver_opts: type: cifs device: "//10.20.26.7/d/DATAIT/CHUNG/26. BIEN BAN BAN GIAO" o: "username=${CIFS_USERNAME},password=${CIFS_PASSWORD},file_mode=0777,dir_mode=0777,iocharset=utf8" cifs_share_2: driver: local driver_opts: type: cifs device: "//10.20.26.7/d/DATAIT/CHUNG/BIEN BAN BAN GIAO" o: "username=${CIFS_USERNAME},password=${CIFS_PASSWORD},file_mode=0777,dir_mode=0777,iocharset=utf8"