forked from Github-Mirrors/canaille
Moved development environment in a dedicated directory
This commit is contained in:
parent
0addeed925
commit
bdde3ce824
6 changed files with 30 additions and 24 deletions
|
@ -24,4 +24,5 @@ You can then connect with user *admin* and password *admin* to access an admin a
|
||||||
cp canaille/conf/config.sample.toml canaille/conf/config.toml
|
cp canaille/conf/config.sample.toml canaille/conf/config.toml
|
||||||
cp canaille/conf/oauth-authorization-server.sample.json canaille/conf/oauth-authorization-server.json
|
cp canaille/conf/oauth-authorization-server.sample.json canaille/conf/oauth-authorization-server.json
|
||||||
cp canaille/conf/openid-configuration.sample.json canaille/conf/openid-configuration.json
|
cp canaille/conf/openid-configuration.sample.json canaille/conf/openid-configuration.json
|
||||||
|
cd dev
|
||||||
docker-compose up
|
docker-compose up
|
||||||
|
|
5
dev/README.md
Normal file
5
dev/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Devevolpment
|
||||||
|
|
||||||
|
Here are tools for developping.
|
||||||
|
|
||||||
|
Run `docker-compose up`.
|
24
dev/docker-compose.yml
Normal file
24
dev/docker-compose.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
ldap:
|
||||||
|
image: osixia/openldap
|
||||||
|
environment:
|
||||||
|
- LDAP_DOMAIN=mydomain.tld
|
||||||
|
volumes:
|
||||||
|
- ./bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-boostrap.ldif:ro
|
||||||
|
- ../schemas/oauth2-openldap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/40-oauth2.ldif:ro
|
||||||
|
command: --copy-service --loglevel debug
|
||||||
|
ports:
|
||||||
|
- 5389:389
|
||||||
|
- 5636:636
|
||||||
|
|
||||||
|
oauth:
|
||||||
|
build:
|
||||||
|
context: ..
|
||||||
|
dockerfile: dev/Dockerfile
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
|
volumes:
|
||||||
|
- ../:/app
|
|
@ -1,24 +0,0 @@
|
||||||
---
|
|
||||||
version: "3"
|
|
||||||
|
|
||||||
services:
|
|
||||||
ldap:
|
|
||||||
image: osixia/openldap
|
|
||||||
environment:
|
|
||||||
- LDAP_DOMAIN=mydomain.tld
|
|
||||||
volumes:
|
|
||||||
- ./docker/bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-boostrap.ldif:ro
|
|
||||||
- ./schemas/oauth2-openldap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/40-oauth2.ldif:ro
|
|
||||||
command: --copy-service --loglevel debug
|
|
||||||
ports:
|
|
||||||
- 5389:389
|
|
||||||
- 5636:636
|
|
||||||
|
|
||||||
oauth:
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: docker/Dockerfile
|
|
||||||
ports:
|
|
||||||
- 5000:5000
|
|
||||||
volumes:
|
|
||||||
- .:/app
|
|
Loading…
Reference in a new issue