-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Docker Compose Example for COmanage Registry | ||
|
|
||
| This is an example Docker Compose file to deploy COmanage | ||
| Registry with the Shibboleth Native SP for Apache HTTP Server | ||
| and a PostgreSQL database. | ||
|
|
||
| See the individual image Dockerfile templates and README | ||
| files for details on how to prepare the volumes and the | ||
| necessary contents including the COmanage Registry | ||
| configuration and the Shibboleth SP configuration. | ||
|
|
||
| Change the tag from `COMANAGE_REGISTRY_VERSION-shibboleth-sp` | ||
| to `COMANAGE_REGISTRY_VERSION-basic-auth` to quickly deploy | ||
| without the need for federation. | ||
|
|
||
| ## Deploy | ||
|
|
||
| ``` | ||
| docker-compose up | ||
| ``` | ||
|
|
||
| ## Tear Down | ||
|
|
||
| ``` | ||
| docker-compose down | ||
| ``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| version: '2.1' | ||
| services: | ||
| comanage-registry: | ||
| image: sphericalcowgroup/comanage-registry:develop-shibboleth-sp | ||
| ports: | ||
| - "80:80" | ||
| - "443:443" | ||
| volumes: | ||
| - /opt/comanage-registry:/local | ||
| - /tmp/shibboleth2.xml:/etc/shibboleth/shibboleth2.xml | ||
| depends_on: | ||
| comanage-registry-database: | ||
| condition: service_healthy | ||
| comanage-registry-database: | ||
| image: sphericalcowgroup/comanage-registry-postgres | ||
| volumes: | ||
| - /tmp/postgres-data:/var/lib/postgresql/data | ||
| healthcheck: | ||
| test: ["CMD", "psql", "-h", "comanage-registry-database", "-U", "postgres", "-c", "\\l"] | ||
| interval: 5s | ||
| timeout: 5s | ||
| retries: 3 |