docker-compose.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. version: "0.0"
  2. services:
  3. # <----------- HASHICORP for secrets management ------------> #
  4. hashicorp-vault:
  5. container_name: hashicorp-vault-dev
  6. image: hashicorp/vault:latest
  7. cap_add:
  8. - IPC_LOCK
  9. environment:
  10. - VAULT_DEV_ROOT_TOKEN_ID=REPLACEME
  11. - VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8080
  12. networks:
  13. - <Caddy Network Name goes here>
  14. # <--------- SEMAPHORE UI STACK -----------> #
  15. mysql:
  16. restart: unless-stopped
  17. image: mysql:8.0
  18. hostname: mysql
  19. volumes:
  20. - semaphore-mysql:/var/lib/mysql
  21. environment:
  22. MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
  23. MYSQL_DATABASE: replaceme
  24. MYSQL_USER: replaceme
  25. MYSQL_PASSWORD: replaceme
  26. networks:
  27. - <Caddy Network Name goes here>
  28. semaphore:
  29. container_name: ansible-semaphore
  30. restart: unless-stopped
  31. ports:
  32. - 3000
  33. image: semaphoreui/semaphore:latest
  34. environment:
  35. SEMAPHORE_DB_USER: replaceme
  36. SEMAPHORE_DB_PASS: replaceme
  37. SEMAPHORE_DB_HOST: mysql # for postgres, change to: postgres
  38. SEMAPHORE_DB_PORT: 3306 # change to 5432 for postgres
  39. SEMAPHORE_DB_DIALECT: mysql # for postgres, change to: postgres
  40. SEMAPHORE_DB: semaphore
  41. SEMAPHORE_PLAYBOOK_PATH: /tmp/semaphore/
  42. SEMAPHORE_ADMIN_PASSWORD: replaceme
  43. SEMAPHORE_ADMIN_NAME: replaceme
  44. SEMAPHORE_ADMIN_EMAIL: whoami@localhost
  45. SEMAPHORE_ADMIN: admin
  46. SEMAPHORE_ACCESS_KEY_ENCRYPTION: <super secret encryption keyname>
  47. SEMAPHORE_LDAP_ACTIVATED: 'no' # if you wish to use ldap, set to: 'yes'
  48. TZ: <your TZ here>
  49. depends_on:
  50. - mysql # for postgres, change to: postgres
  51. networks:
  52. - <Caddy Network Name goes here>
  53. volumes:
  54. semaphore-mysql:
  55. networks:
  56. <Caddy Network Name goes here>:
  57. external: true
  58. name: <the name of your caddy network>