christianlempa-boilerplates/docker-compose/ansiblesemaphore/compose.yaml

44 lines
1.3 KiB
YAML
Raw Normal View History

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:
image: docker.io/library/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
image: docker.io/semaphoreui/semaphore:v2.10.22
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:
- mysql