mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-28 19:23:22 +01:00
40 lines
1.4 KiB
YAML
40 lines
1.4 KiB
YAML
---
|
|
version: '3.9'
|
|
services:
|
|
mysql:
|
|
restart: unless-stopped
|
|
image: mysql:8.0
|
|
hostname: mysql
|
|
volumes:
|
|
- semaphore-mysql:/var/lib/mysql
|
|
environment:
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
- MYSQL_DATABASE=semaphore
|
|
- MYSQL_USER=semaphore
|
|
- MYSQL_PASSWORD=your-db-password # change to your db password
|
|
semaphore:
|
|
container_name: ansiblesemaphore
|
|
image: semaphoreui/semaphore:v2.8.90
|
|
restart: unless-stopped
|
|
ports:
|
|
- 3000:3000
|
|
environment:
|
|
- SEMAPHORE_DB_USER=semaphore
|
|
- SEMAPHORE_DB_PASS=your-db-password # change to your db password
|
|
- SEMAPHORE_DB_HOST=mysql
|
|
- SEMAPHORE_DB_PORT=3306
|
|
- SEMAPHORE_DB_DIALECT=mysql
|
|
- SEMAPHORE_DB=semaphore
|
|
- SEMAPHORE_PLAYBOOK_PATH=/tmp/semaphore/
|
|
- SEMAPHORE_ADMIN_PASSWORD=your-admin-password # change to your admin password
|
|
- SEMAPHORE_ADMIN_NAME=admin
|
|
- SEMAPHORE_ADMIN_EMAIL=admin@localhost
|
|
- SEMAPHORE_ADMIN=admin
|
|
- SEMAPHORE_ACCESS_KEY_ENCRYPTION=gs72mPntFATGJs9qK0pQ0rKtfidlexiMjYCH9gWKhTU= # change to your access key encryption
|
|
- ANSIBLE_HOST_KEY_CHECKING=false # (optional) change to true if you want to enable host key checking
|
|
volumes:
|
|
- ./inventory/:/inventory:ro
|
|
- ./authorized-keys/:/authorized-keys:ro
|
|
- ./config/:/etc/semaphore:rw
|
|
depends_on:
|
|
- mysql |