From 9820b31d73343281af023d40ec3d10fb1dd62bf3 Mon Sep 17 00:00:00 2001 From: kev Date: Tue, 30 Nov 2021 18:30:28 +0800 Subject: [PATCH] add semaphore --- README.md | 1 + awx/docker-compose.yml | 4 ++-- semaphore/README.md | 7 +++++++ semaphore/docker-compose.yml | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 semaphore/README.md create mode 100644 semaphore/docker-compose.yml diff --git a/README.md b/README.md index 2762d471d..4ebb544d2 100644 --- a/README.md +++ b/README.md @@ -415,6 +415,7 @@ A collection of delicious docker recipes. - [x] firefox - [x] vnc - [x] selenoid-ui +- [x] ansiblesemaphore/semaphore - [x] sentry - [x] atmoz/sftp - [x] snipe/snipe-it diff --git a/awx/docker-compose.yml b/awx/docker-compose.yml index 2b6528d6c..4e8d4b70e 100644 --- a/awx/docker-compose.yml +++ b/awx/docker-compose.yml @@ -52,7 +52,7 @@ services: restart: unless-stopped redis: - image: redis:5-alpine + image: redis:6-alpine container_name: awx_redis command: ["/usr/local/etc/redis/redis.conf"] volumes: @@ -61,7 +61,7 @@ services: restart: unless-stopped postgres: - image: postgres:13-alpine + image: postgres:14-alpine container_name: awx_postgres volumes: - ./data/postgres:/var/lib/postgresql/data/pgdata:Z diff --git a/semaphore/README.md b/semaphore/README.md new file mode 100644 index 000000000..5dbecbc94 --- /dev/null +++ b/semaphore/README.md @@ -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/ diff --git a/semaphore/docker-compose.yml b/semaphore/docker-compose.yml new file mode 100644 index 000000000..2211482be --- /dev/null +++ b/semaphore/docker-compose.yml @@ -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