mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-20 12:52:59 +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:
@@ -42,6 +42,18 @@ Any additional configuration should be done through environment variables and no
|
||||
|
||||
The compose file itself is part of the git repository and should not be edited directly. Instead a `docker-compose.override.yml` (will be ignored by git) file can be created to override and extend the default one. See https://docs.docker.com/compose/extends/ for more information.
|
||||
|
||||
#### Why is my compose override file ignored?
|
||||
|
||||
This project uses the `COMPOSE_FILE` environment variable to allow users to override the ports exposed by each container (for example when using a different front facing proxy). When using a `docker-compose.override.yml` file make sure this is included in this variable in the `.env` file. For example like this:
|
||||
|
||||
```
|
||||
COMPOSE_FILE=docker-compose.yml:docker-compose.portmapping.yml:docker-compose.override.yml
|
||||
```
|
||||
|
||||
#### I've pulled in the latest version, but now I cannot reach Kopano over the network any longer!
|
||||
|
||||
This project switched to specifying `COMPOSE_FILE` in `.env` to allow users to easily disable individual ports exposed. Please rerun `setup.sh` to add this variable to your `.env` file or add it manually.
|
||||
|
||||
### How to use a newer version than the one available from the Docker Hub?
|
||||
|
||||
In this repository you can also find a Makefile that automates the process of building newer images.
|
||||
@@ -91,6 +103,10 @@ While using kweb is recommended, this is of course possible.
|
||||
|
||||
Please check the individual web containers (kDAV, WebApp and Z-Push for individual instructions).
|
||||
|
||||
### How can I prevent e.g. `kopano-gateway` to be reachable from the network?
|
||||
|
||||
The exposed ports of each container are defined in `docker-compose.ports.yml`. If you do not want to expose some of the containers to the network, it is recommended to copy this file to `docker-compose.override.yml`and just remove all entries that you do not want to have exposed.
|
||||
|
||||
### I want to use these Docker images outside of an evaluation environment. What do I need to adjust to make this possible?
|
||||
|
||||
To get a quick impression of Kopano this git repository bundles a locally build ldap image with some example users. When using the docker-compose.yml in a production environment make sure to:
|
||||
|
||||
Reference in New Issue
Block a user