version: "3.2" services: codex-docs: image: ghcr.io/codex-team/codex.docs:v2 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_database_driver=mongodb - APP_CONFIG_database_mongodb_uri=mongodb://tipi:${mongoPassword}@codex-mongo:27017`, volumes: - ${APP_DATA_DIR}/data/uploads:/usr/src/app/uploads - ${APP_DATA_DIR}/data/db:/usr/src/app/db - ${APP_DATA_DIR}/data/docs-config.yaml:/usr/src/app/docs-config.yaml networks: - tipi_main_network labels: traefik.enable: ${APP_EXPOSED} traefik.http.routers.codex-docs.rule: Host(`${APP_DOMAIN}`) traefik.http.routers.codex-docs.entrypoints: websecure 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 restart: always environment: MONGO_INITDB_ROOT_USERNAME: tipi MONGO_INITDB_ROOT_PASSWORD: ${MONGO_INITDB_ROOT_PASSWORD} networks: - tipi_main_network