2023-05-25 13:48:38 +02:00
|
|
|
---
|
2023-05-31 10:03:24 +02:00
|
|
|
volumes:
|
|
|
|
semaphore-mysql:
|
|
|
|
driver: local
|
2023-05-25 13:48:38 +02:00
|
|
|
services:
|
|
|
|
mysql:
|
2024-03-18 16:40:34 +01:00
|
|
|
image: mysql:8.3
|
2023-05-25 13:48:38 +02:00
|
|
|
hostname: mysql
|
|
|
|
volumes:
|
|
|
|
- semaphore-mysql:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
|
|
|
- MYSQL_DATABASE=semaphore
|
|
|
|
- MYSQL_USER=semaphore
|
2023-05-31 10:03:24 +02:00
|
|
|
- MYSQL_PASSWORD=secret-password # change!
|
2023-05-25 14:29:44 +02:00
|
|
|
restart: unless-stopped
|
2023-05-25 13:48:38 +02:00
|
|
|
semaphore:
|
|
|
|
container_name: ansiblesemaphore
|
2024-03-25 02:38:44 +01:00
|
|
|
image: semaphoreui/semaphore:v2.9.58
|
2023-05-31 10:03:24 +02:00
|
|
|
user: "${UID}:${GID}"
|
2023-05-25 13:48:38 +02:00
|
|
|
ports:
|
2023-05-31 10:03:36 +02:00
|
|
|
- 3000:3000
|
2023-05-25 13:48:38 +02:00
|
|
|
environment:
|
|
|
|
- SEMAPHORE_DB_USER=semaphore
|
2023-05-31 10:03:24 +02:00
|
|
|
- SEMAPHORE_DB_PASS=secret-password # change!
|
2023-05-25 13:48:38 +02:00
|
|
|
- SEMAPHORE_DB_HOST=mysql
|
|
|
|
- SEMAPHORE_DB_PORT=3306
|
|
|
|
- SEMAPHORE_DB_DIALECT=mysql
|
|
|
|
- SEMAPHORE_DB=semaphore
|
|
|
|
- SEMAPHORE_PLAYBOOK_PATH=/tmp/semaphore/
|
2023-05-31 10:03:24 +02:00
|
|
|
- SEMAPHORE_ADMIN_PASSWORD=secret-admin-password # change!
|
2023-05-25 13:48:38 +02:00
|
|
|
- SEMAPHORE_ADMIN_NAME=admin
|
|
|
|
- SEMAPHORE_ADMIN_EMAIL=admin@localhost
|
|
|
|
- SEMAPHORE_ADMIN=admin
|
2023-05-31 10:03:24 +02:00
|
|
|
- SEMAPHORE_ACCESS_KEY_ENCRYPTION= # add to your access key encryption !
|
2023-05-25 13:48:38 +02:00
|
|
|
- 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
|
2023-05-25 14:29:44 +02:00
|
|
|
restart: unless-stopped
|
2023-05-25 13:48:38 +02:00
|
|
|
depends_on:
|
2024-02-22 22:45:29 +01:00
|
|
|
- mysql
|