Skip to content

Commit

Permalink
First commit for compose
Browse files Browse the repository at this point in the history
  • Loading branch information
skoranda committed Feb 14, 2017
1 parent 4d5e65f commit e291ab8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
26 changes: 26 additions & 0 deletions compose/README.md
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
```
22 changes: 22 additions & 0 deletions compose/docker-compose.yml
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

0 comments on commit e291ab8

Please sign in to comment.