Skip to content

Commit

Permalink
external env
Browse files Browse the repository at this point in the history
  • Loading branch information
scheepers committed Oct 11, 2020
1 parent 25e904d commit e5905c4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/local/backups
/local/config/ldap
/local/data
/environment.env
6 changes: 3 additions & 3 deletions default.env
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Auth
KEYCLOAK_USER=admin
KEYCLOAK_PASSWORD=CHANGE_ME
KEYCLOAK_PASSWORD=change_me!

# Store
LDAP_ADMIN_PASSWORD=CHANGE_ME
LDAP_CONFIG_PASSWORD=CHANGE_ME
LDAP_ADMIN_PASSWORD=change_me!
LDAP_CONFIG_PASSWORD=change_me!
LDAP_ORGANISATION=TMI
LDAP_DOMAIN=tmi.mobi
LDAP_BASE_DN=dc=tmi,dc=mobi
Expand Down
15 changes: 8 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '2'
version: '3'

# Copy default.env to environment.env and change passwords.

services:

auth:
app:
container_name: tmi_access_token_auth
image: jboss/keycloak:10.0.2
restart: always
Expand All @@ -14,12 +14,12 @@ services:
volumes:
- ./local/config/auth:/etc/auth
depends_on:
- store
- db
env_file:
- environment.env

store:
container_name: tmi_access_token_store
db:
container_name: tmi_access_token_db
image: osixia/openldap:1.3.0
restart: always
ports:
Expand All @@ -29,6 +29,7 @@ services:
- ./local/data:/var/lib/ldap
- ./local/config/ldap:/etc/ldap/slapd.d
- ./local/backups:/var/backups
- ./seed:/seed
env_file:
- environment.env

Expand All @@ -40,8 +41,8 @@ services:
- '11020:80'
- '11025:443'
depends_on:
- store
- db
environment:
- PHPLDAPADMIN_LDAP_HOSTS=store
- PHPLDAPADMIN_LDAP_HOSTS=db
env_file:
- environment.env

0 comments on commit e5905c4

Please sign in to comment.