add opts in first init

This commit is contained in:
Vassiliy Yegorov
2020-01-27 13:03:07 +07:00
parent 2422b65c3b
commit 5e2264134e
2 changed files with 5 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ services:
- VIRTUAL_PROTO=https
- VIRTUAL_PORT=443
- VIRTUAL_HOST=${FREEIPA_HOST}
- PASSWORD={FREEIPA_PASS}
# - PASSWORD=${FREEIPA_PASS}
# - HTTPS_METHOD=noredirect
# - USE_LETSENCRYPT_CERTS=${USE_LETSENCRYPT_CERTS}
# - LETSENCRYPT_HOST=${FREEIPA_HOST}

View File

@@ -1,9 +1,10 @@
#!/bin/bash
source .env
# [ -f ${SERVICE_DATA}/ipa-server-install-options ] && {
# echo ${SERVICE_DATA}/ipa-server-install-options
# }
[ -f ${SERVICE_DATA}/ipa-server-install-options ] && {
echo "--password=${FREEIPA_PASS}" > ${SERVICE_DATA}/ipa-server-install-options
echo "--admin-password=${FREEIPA_PASS}" >> ${SERVICE_DATA}/ipa-server-install-options
}
docker-compose run --rm --service-ports freeipa exit-on-finished