1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-08-06 22:23:10 +02:00

add semaphore

This commit is contained in:
kev
2021-11-30 18:30:28 +08:00
parent d671fd0c76
commit 9820b31d73
4 changed files with 46 additions and 2 deletions

7
semaphore/README.md Normal file
View File

@ -0,0 +1,7 @@
semaphore
=========
Ansible [Semaphore][1] is beautiful web interface for running Ansible playbooks. You
do not need to change your playbooks to start using it.
[1]: https://ansible-semaphore.com/

View File

@ -0,0 +1,36 @@
version: "3.8"
services:
semaphore:
image: ansiblesemaphore/semaphore:v2.8.22
ports:
- "3000:3000"
volumes:
- ./data/semaphore:/etc/semaphore
environment:
SEMAPHORE_DB_USER: semaphore
SEMAPHORE_DB_PASS: semaphore
SEMAPHORE_DB_HOST: postgres
SEMAPHORE_DB_PORT: 3306
SEMAPHORE_DB: semaphore
SEMAPHORE_PLAYBOOK_PATH: /tmp/semaphore/
SEMAPHORE_ADMIN: admin
SEMAPHORE_ADMIN_NAME: admin
SEMAPHORE_ADMIN_PASSWORD: admin
SEMAPHORE_ADMIN_EMAIL: admin@localhost
depends_on:
- postgres
restart: unless-stopped
postgres:
image: postgres:14-alpine
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: semaphore
POSTGRES_PASSWORD: semaphore
POSTGRES_DB: semaphore
restart: unless-stopped