changed to use configuration files
This commit is contained in:
@@ -19,10 +19,7 @@ EOF
|
||||
# use envsubst in entrypoint script to convert config templates to actual config files
|
||||
COPY --chmod=0775 entrypoint.sh /entrypoint.sh
|
||||
# https://documentation.kopano.io/kopanocore_administrator_manual/configure_kc_components.html#configure-kopano-dagent-for-delivery-via-unix-socket
|
||||
EXPOSE 110
|
||||
EXPOSE 143
|
||||
EXPOSE 236
|
||||
EXPOSE 8443
|
||||
VOLUME /etc/kopano
|
||||
VOLUME /var/lib/kopano/attachments
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
# export DOCKER_BUILDKIT=1
|
||||
docker run -d --rm --name www -p80:80 -v/root/kopano-docker/dist:/usr/local/apache2/htdocs httpd
|
||||
docker run -d --rm --name dist -p80:80 -v/root/kopano-docker/dist:/usr/local/apache2/htdocs httpd
|
||||
docker build --no-cache --progress=plain -t core .
|
||||
docker build -t core .
|
||||
docker run --rm -it --name core -p8081:80 core bash
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
sed -i \
|
||||
-e's/#mysql_host = localhost/mysql_host = mysql/' \
|
||||
-e's/#mysql_user = root/mysql_user = kopano/' \
|
||||
-e's/#mysql_password =/mysql_password = Asdf2345/' \
|
||||
/etc/kopano/server.cfg
|
||||
# runas user kopano
|
||||
chown kopano:kopano /var/lib/kopano/attachments
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user