version: '3.3' # Specify the Docker Compose file version services: boxes-api: image: boxes-api:latest # Use the existing boxes-api image container_name: boxes-api # Name the container ports: - "8080:8080" # Map host port 8080 to container port 8080 environment: BOXES_API_CONFIG: "/app/config/config.yaml" # Set the CONFIG environment variable volumes: - ./data:/app/data # Mount host data directory - ./images:/app/images # Mount host images directory - ./config:/app/config # Mount host config directory - ./build:/app/build networks: - app-network networks: app-network: driver: bridge