mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-03 17:29:22 -05:00
remove codimd from deployment example
This commit is contained in:
@@ -6,7 +6,7 @@ ocis server&
|
||||
sleep 10
|
||||
|
||||
# stop builtin IDP since we use Keycloak as a replacement
|
||||
ocis kill idp
|
||||
#ocis kill idp
|
||||
|
||||
echo "##################################################"
|
||||
echo "change default secrets:"
|
||||
|
||||
@@ -45,12 +45,6 @@ COLLABORA_ADMIN_PASSWORD=
|
||||
# Domain of OnlyOffice, where you can find the frontend. Defaults to "onlyoffice.owncloud.test"
|
||||
ONLYOFFICE_DOMAIN=
|
||||
|
||||
### CodiMD settings ###
|
||||
# Domain of Collabora, where you can find the frontend. Defaults to "codimd.owncloud.test"
|
||||
CODIMD_DOMAIN=
|
||||
# Secret which is used for the communication with the WOPI server. Must be changed in order to have a secure CodiMD. Defaults to "LoremIpsum456"
|
||||
CODIMD_SECRET=
|
||||
|
||||
# If you want to use debugging and tracing with this stack,
|
||||
# you need uncomment following line. Please see documentation at
|
||||
# https://owncloud.dev/ocis/deployment/monitoring-tracing/
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
apk add curl
|
||||
|
||||
#TODO: app driver itself should try again until CodiMD is up...
|
||||
|
||||
retries=10
|
||||
while [[ $retries -gt 0 ]]; do
|
||||
if curl --silent --show-error --fail http://codimd:3000 > /dev/null; then
|
||||
ocis app-provider server
|
||||
else
|
||||
echo "CodiMD is not yet available, trying again in 10 seconds"
|
||||
sleep 10
|
||||
retries=$((retries - 1))
|
||||
fi
|
||||
done
|
||||
echo 'CodiMD was not available after 100 seconds'
|
||||
exit 1
|
||||
@@ -56,17 +56,3 @@ app_registry:
|
||||
icon: ''
|
||||
default_app: ''
|
||||
allow_creation: true
|
||||
- mime_type: text/markdown
|
||||
extension: md
|
||||
name: Markdown file
|
||||
description: Markdown file
|
||||
icon: ''
|
||||
default_app: CodiMD
|
||||
allow_creation: true
|
||||
- mime_type: application/compressed-markdown
|
||||
extension: zmd
|
||||
name: Compressed markdown file
|
||||
description: Compressed markdown file
|
||||
icon: ''
|
||||
default_app: CodiMD
|
||||
allow_creation: false
|
||||
|
||||
@@ -3,8 +3,6 @@ set -e
|
||||
|
||||
echo "${WOPISECRET}" > /etc/wopi/wopisecret
|
||||
echo "${IOPSECRET}" > /etc/wopi/iopsecret
|
||||
mkdir -p /var/run/secrets
|
||||
echo "$CODIMDSECRET" > /var/run/secrets/codimd_apikey
|
||||
|
||||
cp /etc/wopi/wopiserver.conf.dist /etc/wopi/wopiserver.conf
|
||||
sed -i 's/ocis.owncloud.test/'${OCIS_DOMAIN}'/g' /etc/wopi/wopiserver.conf
|
||||
|
||||
@@ -11,7 +11,6 @@ services:
|
||||
- ${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}
|
||||
- ${COLLABORA_DOMAIN:-collabora.owncloud.test}
|
||||
- ${ONLYOFFICE_DOMAIN:-onlyoffice.owncloud.test}
|
||||
- ${CODIMD_DOMAIN:-codimd.owncloud.test}
|
||||
command:
|
||||
- "--log.level=${TRAEFIK_LOG_LEVEL:-ERROR}"
|
||||
# letsencrypt configuration
|
||||
@@ -132,35 +131,6 @@ services:
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
ocis-appdriver-codimd:
|
||||
image: owncloud/ocis:${OCIS_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
ocis-net:
|
||||
user: "0" # needed for apk add in entrypoint script
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- /entrypoint-override.sh
|
||||
#command: app-provider server
|
||||
environment:
|
||||
REVA_GATEWAY: ${REVA_GATEWAY:-ocis:9142}
|
||||
APP_PROVIDER_GRPC_ADDR: 0.0.0.0:9164
|
||||
APP_PROVIDER_EXTERNAL_ADDR: ocis-appdriver-codimd:9164
|
||||
APP_PROVIDER_DRIVER: wopi
|
||||
APP_PROVIDER_WOPI_APP_NAME: CodiMD
|
||||
APP_PROVIDER_WOPI_APP_API_KEY: ${CODIMD_SECRET:-LoremIpsum456}
|
||||
APP_PROVIDER_WOPI_APP_ICON_URI: https://${CODIMD_DOMAIN:-codimd.owncloud.test}/favicon.png
|
||||
APP_PROVIDER_WOPI_APP_URL: https://${CODIMD_DOMAIN:-codimd.owncloud.test}
|
||||
APP_PROVIDER_WOPI_INSECURE: "${INSECURE:-false}"
|
||||
APP_PROVIDER_WOPI_WOPI_SERVER_IOP_SECRET: ${WOPI_IOP_SECRET:-LoremIpsum123}
|
||||
APP_PROVIDER_WOPI_WOPI_SERVER_EXTERNAL_URL: https://${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}
|
||||
volumes:
|
||||
- ./config/ocis-appdriver-codimd/entrypoint-override.sh:/entrypoint-override.sh
|
||||
- ocis-config:/etc/ocis
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
wopiserver:
|
||||
image: cs3org/wopiserver:${WOPISERVER_DOCKER_TAG:-latest}
|
||||
networks:
|
||||
@@ -172,7 +142,6 @@ services:
|
||||
WOPISERVER_INSECURE: "${INSECURE:-false}"
|
||||
WOPISECRET: ${WOPI_JWT_SECRET:-LoremIpsum567}
|
||||
IOPSECRET: ${WOPI_IOP_SECRET:-LoremIpsum123}
|
||||
CODIMDSECRET: ${CODIMD_SECRET:-LoremIpsum456}
|
||||
WOPISERVER_DOMAIN: ${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}
|
||||
COLLABORA_DOMAIN: ${COLLABORA_DOMAIN:-collabora.owncloud.test}
|
||||
volumes:
|
||||
@@ -234,56 +203,12 @@ services:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
codimd:
|
||||
image: gitlab-registry.cern.ch/authoring/notes/codimd:cernbox-integration
|
||||
networks:
|
||||
ocis-net:
|
||||
environment:
|
||||
CMD_DB_URL: postgres://codimd:codimd@codimd-db/codimd
|
||||
CMD_AUTO_VERSION_CHECK: "false"
|
||||
CMD_ALLOW_ANONYMOUS: "true"
|
||||
CMD_ALLOW_ANONYMOUS_EDITS: "true"
|
||||
CMD_ALLOW_ANONYMOUS_VIEWS: "true"
|
||||
CMD_ALLOW_FREEURL: "true"
|
||||
CMD_EMAIL: "false"
|
||||
CMD_ALLOW_EMAIL_REGISTER: "false"
|
||||
CMD_USESSL: "false"
|
||||
NODE_TLS_REJECT_UNAUTHORIZED: 0
|
||||
CMD_APPLIANCE_MODE: "true"
|
||||
CMD_SAVE_WEBHOOK: https://${WOPISERVER_DOMAIN:-wopiserver.owncloud.test}/wopi/bridge
|
||||
CMD_API_KEY: ${CODIMD_SECRET:-LoremIpsum456}
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.codimd.entrypoints=https"
|
||||
- "traefik.http.routers.codimd.rule=Host(`${CODIMD_DOMAIN:-codimd.owncloud.test}`)"
|
||||
- "traefik.http.routers.codimd.tls.certresolver=http"
|
||||
- "traefik.http.routers.codimd.service=codimd"
|
||||
- "traefik.http.services.codimd.loadbalancer.server.port=3000"
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
codimd-db:
|
||||
image: postgres:11.6-alpine
|
||||
networks:
|
||||
ocis-net:
|
||||
environment:
|
||||
POSTGRES_USER: codimd
|
||||
POSTGRES_PASSWORD: codimd
|
||||
POSTGRES_DB: codimd
|
||||
volumes:
|
||||
- codimd-db-data:/var/lib/postgresql/data
|
||||
logging:
|
||||
driver: "local"
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
certs:
|
||||
ocis-config:
|
||||
ocis-data:
|
||||
wopi-data:
|
||||
wopi-logs:
|
||||
codimd-db-data:
|
||||
|
||||
networks:
|
||||
ocis-net:
|
||||
|
||||
Reference in New Issue
Block a user