{"id":5679,"date":"2022-04-09T07:38:09","date_gmt":"2022-04-09T05:38:09","guid":{"rendered":"https:\/\/www.bdjl.de\/localhost\/?p=5679"},"modified":"2022-04-09T07:38:09","modified_gmt":"2022-04-09T05:38:09","slug":"code-und-docker-compose","status":"publish","type":"post","link":"https:\/\/www.bdjl.de\/localhost\/?p=5679","title":{"rendered":"CODE und docker-compose"},"content":{"rendered":"<p>Wer <em>docker-compose<\/em> f\u00fcr Collabora CODE nutzt und gerade feststellt, dass der Container von einem restart in den n\u00e4chsten rutscht:<\/p>\n<pre>docker logs --tail 50 --follow --timestamps code-container-name<\/pre>\n<p>Findet darin<\/p>\n<pre>2022-04-09T05:19:00.304230963Z -e ERR: Use of domain variable is not supported. First host\/domain who tries to connect to COOL is always allowed. \r\n2022-04-09T05:19:00.304248902Z To allow multiple host and its aliases use something like this and pass it as env variable: \r\n2022-04-09T05:19:00.304251820Z aliasgroup1=https:\/\/domain1:443,https:\/\/its-alias|its-second-alias:443 \u00a0\r\n2022-04-09T05:19:00.304254556Z aliasgroup2=https:\/\/domain2:443,https:\/\/its-alias:443 \u00a0\r\n2022-04-09T05:19:00.304256886Z For more info: https:\/\/sdk.collaboraonline.com\/docs\/installation\/CODE_Docker_image.html\r\n\r\n<\/pre>\n<p>und darf die <em>.env<\/em> sowie die <em>docker-compose.yml<\/em> anpassen. Zuerst zur <em>.env<\/em>:<\/p>\n<pre>COLLABORA_USERNAME=admin \r\nCOLLABORA_PASSWORD=supergeheim \r\nCOLLABORA_ALIASGROUP1=https:\/\/www.domain1.tld:443,https:\/\/domain2\\\\.tld:443|https:\/\/www\\\\.domain3\\\\.tld:443<\/pre>\n<p>und somit die <em>docker-compose.yml<\/em>:<\/p>\n<pre>version: '3' \r\nservices: \r\n\u00a0code: \r\n\u00a0\u00a0\u00a0image: collabora\/code:latest \r\n\u00a0\u00a0\u00a0restart: unless-stopped \r\n\u00a0\u00a0\u00a0environment: \r\n\u00a0\u00a0\u00a0\u00a0\u00a0- password=${COLLABORA_PASSWORD} \r\n\u00a0\u00a0\u00a0\u00a0\u00a0- username=${COLLABORA_USERNAME} \r\n\u00a0\u00a0\u00a0\u00a0\u00a0- aliasgroup1=${COLLABORA_ALIASGROUP1} \r\n\u00a0\u00a0\u00a0\u00a0\u00a0- extra_params=--o:ssl.enable=true \r\n\u00a0\u00a0\u00a0ports: \r\n\u00a0\u00a0\u00a0\u00a0\u00a0- 9980:9980<\/pre>\n<p>Dann flutscht es wieder. Mehr dazu findet mensch <a href=\"https:\/\/sdk.collaboraonline.com\/docs\/installation\/CODE_Docker_image.html#setting-the-application-configuration-dynamically-via-environment-variables\" target=\"_blank\" rel=\"noopener\">hier<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wer docker-compose f\u00fcr Collabora CODE nutzt und gerade feststellt, dass der Container von einem restart in den n\u00e4chsten rutscht: docker logs &#8211;tail 50 &#8211;follow &#8211;timestamps code-container-name Findet darin 2022-04-09T05:19:00.304230963Z -e ERR: Use of domain variable is not supported. First host\/domain who tries to connect to COOL is always allowed. 2022-04-09T05:19:00.304248902Z To allow multiple host and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,7],"tags":[566,615],"class_list":["post-5679","post","type-post","status-publish","format-standard","hentry","category-moodle","category-office","tag-collabora","tag-docker-compose"],"_links":{"self":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/5679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5679"}],"version-history":[{"count":1,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/5679\/revisions"}],"predecessor-version":[{"id":5680,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=\/wp\/v2\/posts\/5679\/revisions\/5680"}],"wp:attachment":[{"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bdjl.de\/localhost\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}