Moved development environment in a dedicated directory

This commit is contained in:
Éloi Rivard 2020-11-06 18:38:14 +01:00
parent 0addeed925
commit bdde3ce824
6 changed files with 30 additions and 24 deletions

View file

@ -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
View file

@ -0,0 +1,5 @@
# Devevolpment
Here are tools for developping.
Run `docker-compose up`.

24
dev/docker-compose.yml Normal file
View 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

View file

@ -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