From 04eb4d2a1338df5cec5e56f044f44795f4d74aa3 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Wed, 1 Mar 2023 19:54:03 +0100 Subject: [PATCH] chore(codex-docs): update config to work on arm --- apps/codex-docs/config.json | 14 +++++++------- apps/codex-docs/docker-compose.yml | 20 +++++++++++--------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/apps/codex-docs/config.json b/apps/codex-docs/config.json index 37392783..f67d1747 100644 --- a/apps/codex-docs/config.json +++ b/apps/codex-docs/config.json @@ -3,10 +3,10 @@ "name": "CodeX.docs", "available": true, "exposable": true, - "port": 8086, + "port": 8101, "id": "codex-docs", "tipi_version": 1, - "version": "v2", + "version": "v2.1", "categories": ["media"], "description": "CodeX Docs is a free docs application. It's based on Editor.js ecosystem which gives all modern opportunities for working with content. You can use it for product documentation, for internal team docs, for personal notes or any other need. ", "short_desc": "Free Docs app powered by Editor.js ecosystem.", @@ -19,19 +19,19 @@ "max": 50, "min": 3, "required": true, - "env_variable": "APP_CONFIG_auth_password" + "env_variable": "CODEX_AUTH_PASSWORD" }, { "type": "random", - "label": "MONGO_INITDB_ROOT_PASSWORD", + "label": "CODEX_DB_PASSWORD", "min": 32, - "env_variable": "MONGO_INITDB_ROOT_PASSWORD" + "env_variable": "CODEX_DB_PASSWORD" }, { "type": "random", - "label": "APP_CONFIG_auth_secret", + "label": "CODEX_AUTH_SECRET", "min": 32, - "env_variable": "APP_CONFIG_auth_secret" + "env_variable": "CODEX_AUTH_SECRET" } ] } diff --git a/apps/codex-docs/docker-compose.yml b/apps/codex-docs/docker-compose.yml index 38e8b50b..a9743496 100644 --- a/apps/codex-docs/docker-compose.yml +++ b/apps/codex-docs/docker-compose.yml @@ -1,16 +1,17 @@ -version: "3.2" +version: '3.2' services: codex-docs: - image: ghcr.io/codex-team/codex.docs:v2 + container_name: codex-docs + image: ghcr.io/codex-team/codex.docs:v2.1 ports: - ${APP_PORT}:3000 restart: unless-stopped environment: - - APP_CONFIG_auth_password=${APP_CONFIG_auth_password} - - APP_CONFIG_auth_secret=${APP_CONFIG_auth_secret} + - APP_CONFIG_auth_password=${CODEX_AUTH_PASSWORD} + - APP_CONFIG_auth_secret=${CODEX_AUTH_SECRET} - APP_CONFIG_database_driver=mongodb - - APP_CONFIG_database_mongodb_uri=mongodb://tipi:${mongoPassword}@codex-mongo:27017`, + - APP_CONFIG_database_mongodb_uri=mongodb://tipi:${CODEX_DB_PASSWORD}@codex-db:27017 volumes: - ${APP_DATA_DIR}/data/uploads:/usr/src/app/uploads - ${APP_DATA_DIR}/data/db:/usr/src/app/db @@ -24,12 +25,13 @@ services: traefik.http.routers.codex-docs.service: codex-docs traefik.http.routers.codex-docs.tls.certresolver: myresolver traefik.http.services.codex-docs.loadbalancer.server.port: 3000 - codex-mongo: - image: mongo + + codex-db: + container_name: codex-db + image: mongo:latest restart: always environment: MONGO_INITDB_ROOT_USERNAME: tipi - MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD} + MONGO_INITDB_ROOT_PASSWORD: ${CODEX_DB_PASSWORD} networks: - tipi_main_network - \ No newline at end of file