BarcodeBuddy¶
| Description / name | Input element |
|---|---|
| Your domain name |
Overview¶
BarcodeBuddy is a barcode system for Grocy that enables barcode scanning and product management. It automatically handles known and unknown barcodes, integrating seamlessly with Grocy's inventory management system.
Deployment¶
sb install sandbox-barcodebuddy
Usage¶
Visit https://barcodebuddy.iYOUR_DOMAIN_NAMEi.
Basics¶
Configure the connection to your Grocy instance through the application settings and set up user authentication.
Role Defaults¶
Use the Inventory to customize variables. (1)
-
Example override
barcodebuddy_name: "custom_value"Avoid overriding variables ending in
_defaultWhen overriding variables that end in
_default(likebarcodebuddy_docker_envs_default), you replace the entire default configuration. Future updates that add new default values will not be applied to your setup, potentially breaking functionality.Instead, use the corresponding
_customvariable (likebarcodebuddy_docker_envs_custom) to add your changes. Custom values are merged with defaults, ensuring you receive updates.
barcodebuddy_name
# Type: string
barcodebuddy_name: barcodebuddy
barcodebuddy_role_web_subdomain
# Type: string
barcodebuddy_role_web_subdomain: "{{ barcodebuddy_name }}"
barcodebuddy_role_web_domain
# Type: string
barcodebuddy_role_web_domain: "{{ user.domain }}"
barcodebuddy_role_web_port
# Type: string
barcodebuddy_role_web_port: "80"
barcodebuddy_role_web_url
# Type: string
barcodebuddy_role_web_url: "{{ 'https://' + (lookup('role_var', '_web_subdomain', role='barcodebuddy') + '.' + lookup('role_var', '_web_domain', role='barcodebuddy')
if (lookup('role_var', '_web_subdomain', role='barcodebuddy') | length > 0)
else lookup('role_var', '_web_domain', role='barcodebuddy')) }}"
barcodebuddy_role_dns_record
# Type: string
barcodebuddy_role_dns_record: "{{ lookup('role_var', '_web_subdomain', role='barcodebuddy') }}"
barcodebuddy_role_dns_zone
# Type: string
barcodebuddy_role_dns_zone: "{{ lookup('role_var', '_web_domain', role='barcodebuddy') }}"
barcodebuddy_role_dns_proxy
# Type: bool (true/false)
barcodebuddy_role_dns_proxy: "{{ dns_proxied }}"
barcodebuddy_role_traefik_sso_middleware
# Type: string
barcodebuddy_role_traefik_sso_middleware: ""
barcodebuddy_role_traefik_middleware_default
# Type: string
barcodebuddy_role_traefik_middleware_default: "{{ traefik_default_middleware }}"
barcodebuddy_role_traefik_middleware_custom
# Type: string
barcodebuddy_role_traefik_middleware_custom: ""
barcodebuddy_role_traefik_certresolver
# Type: string
barcodebuddy_role_traefik_certresolver: "{{ traefik_default_certresolver }}"
barcodebuddy_role_traefik_enabled
# Type: bool (true/false)
barcodebuddy_role_traefik_enabled: true
Container
barcodebuddy_role_docker_container
# Type: string
barcodebuddy_role_docker_container: "{{ barcodebuddy_name }}"
Image
barcodebuddy_role_docker_image_pull
# Type: bool (true/false)
barcodebuddy_role_docker_image_pull: true
barcodebuddy_role_docker_image_repo
# Type: string
barcodebuddy_role_docker_image_repo: "f0rc3/barcodebuddy"
barcodebuddy_role_docker_image_tag
# Type: string
barcodebuddy_role_docker_image_tag: "latest"
barcodebuddy_role_docker_image
# Type: string
barcodebuddy_role_docker_image: "{{ lookup('role_var', '_docker_image_repo', role='barcodebuddy') }}:{{ lookup('role_var', '_docker_image_tag', role='barcodebuddy') }}"
Envs
barcodebuddy_role_docker_envs_default
# Type: dict
barcodebuddy_role_docker_envs_default:
PUID: "{{ uid }}"
PGID: "{{ gid }}"
TZ: "{{ tz }}"
barcodebuddy_role_docker_envs_custom
# Type: dict
barcodebuddy_role_docker_envs_custom: {}
Volumes
barcodebuddy_role_docker_volumes_default
# Type: list
barcodebuddy_role_docker_volumes_default:
- "{{ lookup('role_var', '_paths_location', role='barcodebuddy') }}:/config"
barcodebuddy_role_docker_volumes_custom
# Type: list
barcodebuddy_role_docker_volumes_custom: []
Hostname
barcodebuddy_role_docker_hostname
# Type: string
barcodebuddy_role_docker_hostname: "{{ barcodebuddy_name }}"
Networks
barcodebuddy_role_docker_networks_alias
# Type: string
barcodebuddy_role_docker_networks_alias: "{{ barcodebuddy_name }}"
barcodebuddy_role_docker_networks_default
# Type: list
barcodebuddy_role_docker_networks_default: []
barcodebuddy_role_docker_networks_custom
# Type: list
barcodebuddy_role_docker_networks_custom: []
Restart Policy
barcodebuddy_role_docker_restart_policy
# Type: string
barcodebuddy_role_docker_restart_policy: unless-stopped
State
barcodebuddy_role_docker_state
# Type: string
barcodebuddy_role_docker_state: started
The following advanced options are available via create_docker_container but are not defined in the role. See: docker_container module
Resource Limits
barcodebuddy_role_docker_blkio_weight
# Type: int
barcodebuddy_role_docker_blkio_weight:
barcodebuddy_role_docker_cpu_period
# Type: int
barcodebuddy_role_docker_cpu_period:
barcodebuddy_role_docker_cpu_quota
# Type: int
barcodebuddy_role_docker_cpu_quota:
barcodebuddy_role_docker_cpu_shares
# Type: int
barcodebuddy_role_docker_cpu_shares:
barcodebuddy_role_docker_cpus
# Type: string
barcodebuddy_role_docker_cpus:
barcodebuddy_role_docker_cpuset_cpus
# Type: string
barcodebuddy_role_docker_cpuset_cpus:
barcodebuddy_role_docker_cpuset_mems
# Type: string
barcodebuddy_role_docker_cpuset_mems:
barcodebuddy_role_docker_kernel_memory
# Type: string
barcodebuddy_role_docker_kernel_memory:
barcodebuddy_role_docker_memory
# Type: string
barcodebuddy_role_docker_memory:
barcodebuddy_role_docker_memory_reservation
# Type: string
barcodebuddy_role_docker_memory_reservation:
barcodebuddy_role_docker_memory_swap
# Type: string
barcodebuddy_role_docker_memory_swap:
barcodebuddy_role_docker_memory_swappiness
# Type: int
barcodebuddy_role_docker_memory_swappiness:
barcodebuddy_role_docker_shm_size
# Type: string
barcodebuddy_role_docker_shm_size:
Security & Devices
barcodebuddy_role_docker_cap_drop
# Type: list
barcodebuddy_role_docker_cap_drop:
barcodebuddy_role_docker_cgroupns_mode
# Type: string
barcodebuddy_role_docker_cgroupns_mode:
barcodebuddy_role_docker_device_cgroup_rules
# Type: list
barcodebuddy_role_docker_device_cgroup_rules:
barcodebuddy_role_docker_device_read_bps
# Type: list
barcodebuddy_role_docker_device_read_bps:
barcodebuddy_role_docker_device_read_iops
# Type: list
barcodebuddy_role_docker_device_read_iops:
barcodebuddy_role_docker_device_requests
# Type: list
barcodebuddy_role_docker_device_requests:
barcodebuddy_role_docker_device_write_bps
# Type: list
barcodebuddy_role_docker_device_write_bps:
barcodebuddy_role_docker_device_write_iops
# Type: list
barcodebuddy_role_docker_device_write_iops:
barcodebuddy_role_docker_devices
# Type: list
barcodebuddy_role_docker_devices:
barcodebuddy_role_docker_devices_default
# Type: string
barcodebuddy_role_docker_devices_default:
barcodebuddy_role_docker_groups
# Type: list
barcodebuddy_role_docker_groups:
barcodebuddy_role_docker_privileged
# Type: bool (true/false)
barcodebuddy_role_docker_privileged:
barcodebuddy_role_docker_security_opts
# Type: list
barcodebuddy_role_docker_security_opts:
barcodebuddy_role_docker_user
# Type: string
barcodebuddy_role_docker_user:
barcodebuddy_role_docker_userns_mode
# Type: string
barcodebuddy_role_docker_userns_mode:
Networking
barcodebuddy_role_docker_dns_opts
# Type: list
barcodebuddy_role_docker_dns_opts:
barcodebuddy_role_docker_dns_search_domains
# Type: list
barcodebuddy_role_docker_dns_search_domains:
barcodebuddy_role_docker_dns_servers
# Type: list
barcodebuddy_role_docker_dns_servers:
barcodebuddy_role_docker_domainname
# Type: string
barcodebuddy_role_docker_domainname:
barcodebuddy_role_docker_exposed_ports
# Type: list
barcodebuddy_role_docker_exposed_ports:
barcodebuddy_role_docker_hosts
# Type: dict
barcodebuddy_role_docker_hosts:
barcodebuddy_role_docker_hosts_use_common
# Type: bool (true/false)
barcodebuddy_role_docker_hosts_use_common:
barcodebuddy_role_docker_ipc_mode
# Type: string
barcodebuddy_role_docker_ipc_mode:
barcodebuddy_role_docker_links
# Type: list
barcodebuddy_role_docker_links:
barcodebuddy_role_docker_network_mode
# Type: string
barcodebuddy_role_docker_network_mode:
barcodebuddy_role_docker_pid_mode
# Type: string
barcodebuddy_role_docker_pid_mode:
barcodebuddy_role_docker_ports
# Type: list
barcodebuddy_role_docker_ports:
barcodebuddy_role_docker_uts
# Type: string
barcodebuddy_role_docker_uts:
Storage
barcodebuddy_role_docker_keep_volumes
# Type: bool (true/false)
barcodebuddy_role_docker_keep_volumes:
barcodebuddy_role_docker_mounts
# Type: list
barcodebuddy_role_docker_mounts:
barcodebuddy_role_docker_storage_opts
# Type: dict
barcodebuddy_role_docker_storage_opts:
barcodebuddy_role_docker_tmpfs
# Type: list
barcodebuddy_role_docker_tmpfs:
barcodebuddy_role_docker_volume_driver
# Type: string
barcodebuddy_role_docker_volume_driver:
barcodebuddy_role_docker_volumes_from
# Type: list
barcodebuddy_role_docker_volumes_from:
barcodebuddy_role_docker_volumes_global
# Type: bool (true/false)
barcodebuddy_role_docker_volumes_global:
barcodebuddy_role_docker_working_dir
# Type: string
barcodebuddy_role_docker_working_dir:
Monitoring & Lifecycle
barcodebuddy_role_docker_auto_remove
# Type: bool (true/false)
barcodebuddy_role_docker_auto_remove:
barcodebuddy_role_docker_cleanup
# Type: bool (true/false)
barcodebuddy_role_docker_cleanup:
barcodebuddy_role_docker_force_kill
# Type: string
barcodebuddy_role_docker_force_kill:
barcodebuddy_role_docker_healthcheck
# Type: dict
barcodebuddy_role_docker_healthcheck:
barcodebuddy_role_docker_healthy_wait_timeout
# Type: int
barcodebuddy_role_docker_healthy_wait_timeout:
barcodebuddy_role_docker_init
# Type: bool (true/false)
barcodebuddy_role_docker_init:
barcodebuddy_role_docker_kill_signal
# Type: string
barcodebuddy_role_docker_kill_signal:
barcodebuddy_role_docker_log_driver
# Type: string
barcodebuddy_role_docker_log_driver:
barcodebuddy_role_docker_log_options
# Type: dict
barcodebuddy_role_docker_log_options:
barcodebuddy_role_docker_oom_killer
# Type: bool (true/false)
barcodebuddy_role_docker_oom_killer:
barcodebuddy_role_docker_oom_score_adj
# Type: int
barcodebuddy_role_docker_oom_score_adj:
barcodebuddy_role_docker_output_logs
# Type: bool (true/false)
barcodebuddy_role_docker_output_logs:
barcodebuddy_role_docker_paused
# Type: bool (true/false)
barcodebuddy_role_docker_paused:
barcodebuddy_role_docker_recreate
# Type: bool (true/false)
barcodebuddy_role_docker_recreate:
barcodebuddy_role_docker_restart_retries
# Type: int
barcodebuddy_role_docker_restart_retries:
barcodebuddy_role_docker_stop_timeout
# Type: int
barcodebuddy_role_docker_stop_timeout:
Other Options
barcodebuddy_role_docker_capabilities
# Type: list
barcodebuddy_role_docker_capabilities:
barcodebuddy_role_docker_cgroup_parent
# Type: string
barcodebuddy_role_docker_cgroup_parent:
barcodebuddy_role_docker_commands
# Type: list
barcodebuddy_role_docker_commands:
barcodebuddy_role_docker_create_timeout
# Type: int
barcodebuddy_role_docker_create_timeout:
barcodebuddy_role_docker_entrypoint
# Type: string
barcodebuddy_role_docker_entrypoint:
barcodebuddy_role_docker_env_file
# Type: string
barcodebuddy_role_docker_env_file:
barcodebuddy_role_docker_labels
# Type: dict
barcodebuddy_role_docker_labels:
barcodebuddy_role_docker_labels_use_common
# Type: bool (true/false)
barcodebuddy_role_docker_labels_use_common:
barcodebuddy_role_docker_read_only
# Type: bool (true/false)
barcodebuddy_role_docker_read_only:
barcodebuddy_role_docker_runtime
# Type: string
barcodebuddy_role_docker_runtime:
barcodebuddy_role_docker_sysctls
# Type: list
barcodebuddy_role_docker_sysctls:
barcodebuddy_role_docker_ulimits
# Type: list
barcodebuddy_role_docker_ulimits:
barcodebuddy_role_autoheal_enabled
# Enable or disable Autoheal monitoring for the container created when deploying
# Type: bool (true/false)
barcodebuddy_role_autoheal_enabled: true
barcodebuddy_role_depends_on
# List of container dependencies that must be running before the container start
# Type: string
barcodebuddy_role_depends_on: ""
barcodebuddy_role_depends_on_delay
# Delay in seconds before starting the container after dependencies are ready
# Type: string (quoted number)
barcodebuddy_role_depends_on_delay: "0"
barcodebuddy_role_depends_on_healthchecks
# Enable healthcheck waiting for container dependencies
# Type: string ("true"/"false")
barcodebuddy_role_depends_on_healthchecks:
barcodebuddy_role_diun_enabled
# Enable or disable Diun update notifications for the container created when deploying
# Type: bool (true/false)
barcodebuddy_role_diun_enabled: true
barcodebuddy_role_dns_enabled
# Enable or disable automatic DNS record creation for the container
# Type: bool (true/false)
barcodebuddy_role_dns_enabled: true
barcodebuddy_role_docker_controller
# Enable or disable Saltbox Docker Controller management for the container
# Type: bool (true/false)
barcodebuddy_role_docker_controller: true
barcodebuddy_role_docker_image_repo
# Type: string
barcodebuddy_role_docker_image_repo:
barcodebuddy_role_docker_image_tag
# Type: string
barcodebuddy_role_docker_image_tag:
barcodebuddy_role_docker_volumes_download
# Type: bool (true/false)
barcodebuddy_role_docker_volumes_download:
barcodebuddy_role_paths_location
# Type: string
barcodebuddy_role_paths_location:
barcodebuddy_role_themepark_addons
# Type: string
barcodebuddy_role_themepark_addons:
barcodebuddy_role_themepark_app
# Type: string
barcodebuddy_role_themepark_app:
barcodebuddy_role_themepark_theme
# Type: string
barcodebuddy_role_themepark_theme:
barcodebuddy_role_traefik_api_endpoint
# Type: dict/omit
barcodebuddy_role_traefik_api_endpoint:
barcodebuddy_role_traefik_api_middleware
# Type: string
barcodebuddy_role_traefik_api_middleware:
barcodebuddy_role_traefik_api_middleware_http
# Type: string
barcodebuddy_role_traefik_api_middleware_http:
barcodebuddy_role_traefik_autodetect_enabled
# Enable Traefik autodetect middleware for the container
# Type: bool (true/false)
barcodebuddy_role_traefik_autodetect_enabled: false
barcodebuddy_role_traefik_certresolver
# Type: string
barcodebuddy_role_traefik_certresolver:
barcodebuddy_role_traefik_crowdsec_enabled
# Enable CrowdSec middleware for the container
# Type: bool (true/false)
barcodebuddy_role_traefik_crowdsec_enabled: false
barcodebuddy_role_traefik_error_pages_enabled
# Enable custom error pages middleware for the container
# Type: bool (true/false)
barcodebuddy_role_traefik_error_pages_enabled: false
barcodebuddy_role_traefik_gzip_enabled
# Enable gzip compression middleware for the container
# Type: bool (true/false)
barcodebuddy_role_traefik_gzip_enabled: false
barcodebuddy_role_traefik_middleware_http
# Type: string
barcodebuddy_role_traefik_middleware_http:
barcodebuddy_role_traefik_middleware_http_api_insecure
# Type: bool (true/false)
barcodebuddy_role_traefik_middleware_http_api_insecure:
barcodebuddy_role_traefik_middleware_http_insecure
# Type: bool (true/false)
barcodebuddy_role_traefik_middleware_http_insecure:
barcodebuddy_role_traefik_priority
# Type: string
barcodebuddy_role_traefik_priority:
barcodebuddy_role_traefik_robot_enabled
# Enable robots.txt middleware for the container
# Type: bool (true/false)
barcodebuddy_role_traefik_robot_enabled: true
barcodebuddy_role_traefik_tailscale_enabled
# Enable Tailscale-specific Traefik configuration for the container
# Type: bool (true/false)
barcodebuddy_role_traefik_tailscale_enabled: false
barcodebuddy_role_traefik_wildcard_enabled
# Enable wildcard certificate for the container
# Type: bool (true/false)
barcodebuddy_role_traefik_wildcard_enabled: true
barcodebuddy_role_web_domain
# Type: string
barcodebuddy_role_web_domain:
barcodebuddy_role_web_fqdn_override
# Override the Traefik fully qualified domain name (FQDN) for the container
# Type: list
barcodebuddy_role_web_fqdn_override:
Example Override
barcodebuddy_role_web_fqdn_override:
- "{{ traefik_host }}"
- "barcodebuddy2.{{ user.domain }}"
- "barcodebuddy.otherdomain.tld"
Note: Include {{ traefik_host }} to preserve the default FQDN alongside your custom entries
barcodebuddy_role_web_host_override
# Override the Traefik web host configuration for the container
# Type: string
barcodebuddy_role_web_host_override:
Example Override
barcodebuddy_role_web_host_override: "Host(`{{ traefik_host }}`) || Host(`{{ 'barcodebuddy2.' + user.domain }}`)"
Note: Use {{ traefik_host }} to include the default host configuration in your custom rule
barcodebuddy_role_web_http_port
# Type: string (quoted number)
barcodebuddy_role_web_http_port:
barcodebuddy_role_web_http_scheme
# Type: string ("http"/"https")
barcodebuddy_role_web_http_scheme:
barcodebuddy_role_web_http_serverstransport
# Type: dict/omit
barcodebuddy_role_web_http_serverstransport:
barcodebuddy_role_web_scheme
# URL scheme to use for web access to the container
# Type: string ("http"/"https")
barcodebuddy_role_web_scheme:
barcodebuddy_role_web_serverstransport
# Type: dict/omit
barcodebuddy_role_web_serverstransport:
barcodebuddy_role_web_subdomain
# Type: string
barcodebuddy_role_web_subdomain: