# Semaphore UI — Web UI for Ansible
# Port: 3838
# URL: http://192.168.0.210:3838
# Visual interface for running Ansible playbooks, managing inventories, and tracking runs

services:
  semaphore:
    image: semaphoreui/semaphore:latest
    container_name: semaphore
    ports:
      - "3838:3000"
    volumes:
      - /home/homelab/docker/semaphore:/etc/semaphore
      - /home/homelab/docker/semaphore/db:/var/lib/semaphore
      - /home/homelab/docker/semaphore/tmp:/tmp/semaphore
      - /home/homelab/organized/repos/homelab:/home/homelab/organized/repos/homelab:ro
      - /home/homelab/docker/semaphore/ssh:/home/semaphore/.ssh:ro
    environment:
      SEMAPHORE_DB_DIALECT: bolt
      SEMAPHORE_ADMIN_PASSWORD: "REDACTED_PASSWORD"
      SEMAPHORE_ADMIN_NAME: admin
      SEMAPHORE_ADMIN_EMAIL: your-email@example.com
      SEMAPHORE_ADMIN: admin
      SEMAPHORE_ACCESS_KEY_ENCRYPTION: ${SEMAPHORE_ACCESS_KEY_ENCRYPTION:-gs72mPntFATGJs9qK0pQ0rKtfidlexiMjYCH9gWKhTU=}
    restart: unless-stopped
