mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-18 03:42:56 +00:00
Make it possible for users to customise exposed ports (#182)
* move portmapping into docker-compose.ports.yml Ensure loading of docker-compose.ports.yml via COMPOSE_FILE in .env. * instruct users to put overridden ports into override.yml
This commit is contained in:
@@ -314,9 +314,11 @@ KOPANOSPORT=237
|
||||
# Settings for test environments
|
||||
INSECURE=$INSECURE
|
||||
|
||||
# Docker and docker-compose settings
|
||||
# Docker Repository to push to/pull from
|
||||
docker_repo=zokradonh
|
||||
COMPOSE_PROJECT_NAME=kopano
|
||||
COMPOSE_FILE=docker-compose.yml:docker-compose.ports.yml
|
||||
|
||||
# Modify below to build a different version, than the kopano nightly release
|
||||
#KOPANO_CORE_REPOSITORY_URL=https://serial:REPLACE-ME@download.kopano.io/supported/core:/final/Debian_9.0/
|
||||
@@ -335,6 +337,12 @@ ADDITIONAL_KOPANO_WEBAPP_PLUGINS=$ADDITIONAL_KOPANO_WEBAPP_PLUGINS
|
||||
|
||||
EOF
|
||||
else
|
||||
echo "config already exists, doing nothing"
|
||||
echo "if you want to change the configuration, please edit .env directly"
|
||||
|
||||
if ! grep -q COMPOSE_FILE ./.env; then
|
||||
echo "Adding COMPOSE_FILE setting to .env"
|
||||
echo "COMPOSE_FILE=docker-compose.yml:docker-compose.ports.yml" >> ./.env
|
||||
fi
|
||||
|
||||
echo ".env already exists with initial configuration"
|
||||
echo "If you want to change the configuration, please edit .env directly"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user