https://github.com/robertdebock/docker-compose-semaphore
https://github.com/robertdebock/docker-compose-semaphore
ansible apache-httpd api bats docker docker-compose linux mysql
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/robertdebock/docker-compose-semaphore
- Owner: robertdebock
- License: apache-2.0
- Created: 2016-08-07T04:42:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-25T14:27:31.000Z (over 7 years ago)
- Last Synced: 2025-02-16T10:28:52.185Z (4 months ago)
- Topics: ansible, apache-httpd, api, bats, docker, docker-compose, linux, mysql
- Language: Shell
- Size: 33.2 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/robertdebock/docker-compose-semaphore) [](https://microbadger.com/images/robertdebock/semaphore "Get your own image badge on microbadger.com")
# docker-compose-semaphore
A set of dockerized apps to support Semaphore, a web application for Ansible.
There are three applications:
- Apache httpd - to deal with SSL. (HTTPS)
- Semaphore - the application itself.
- MySQL - to store persistent data## Overview of the environment
+-------+ +-----------+ +-------+
| httpd | --> | semaphore | --> | mysql |
+-------+ +-----------+ +-------+## Running the application
In order to run this application, run these commands:git clone https://github.com/robertdebock/docker-compose-semaphore.git
cd docker-compose-semaphore
docker-compose upWhen started, press CTRL+C or "docker-compose stop" to (temporarily) stop it. When using "docker-compose start", all persistent data will be in tact.
Login with the default username / password combination:
- username: semaphore
- password: semaphore## Customizing the application
You may want to customize variables.env, where you can add Apache HTTPD settings like so:SERVERNAME=semaphore.meinit.nl:443
[email protected]
SSL_COUNTRY=NL
SSL_STATE=UTRECHT
SSL_LOCATION=Breukelen
SSL_ORGANIZATION=Me in IT Consultancy
SSL_ORGANIZATIONAL_UNIT=IT Department
SSL_COMMONNAME=semaphore.meinit.nl## Managing the application
Two scripts have been added:
- scripts/backup.sh - Backs up: mysql, /tmp and /root/.ssh/
- scripts/restore.sh - Restores the backup.Restoring is only required when the volumes have been removed, so either because "docker-compose down" was issued of when the Docker engine has been changed.