{"id":22419676,"url":"https://github.com/sentclose/hosting","last_synced_at":"2026-01-07T11:10:58.277Z","repository":{"id":178364727,"uuid":"661753945","full_name":"sentclose/hosting","owner":"sentclose","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-20T15:17:04.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-07-20T16:34:43.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sentc.com/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sentclose.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-03T15:09:05.000Z","updated_at":"2023-07-03T15:09:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"554c63b8-cc4d-48c1-af17-185587a35cfb","html_url":"https://github.com/sentclose/hosting","commit_stats":null,"previous_names":["sentclose/hosting"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sentclose%2Fhosting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sentclose%2Fhosting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sentclose%2Fhosting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sentclose%2Fhosting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sentclose","download_url":"https://codeload.github.com/sentclose/hosting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245785715,"owners_count":20671631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T16:16:28.759Z","updated_at":"2026-01-07T11:10:53.257Z","avatar_url":"https://github.com/sentclose.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentc api self-hosting\n\nwith docker.\n\nFollow the steps to self-host the sentc api with docker compose.\n\n1. Copy and rename the following files:\n    - `.env.sample` -\u003e `.env`\n    - `sentc.env.sample` -\u003e `sentc.env`\n2. Create a Root key with the sentc key gen and put it in ROOT_KEY:\n```bash:no-line-numbers\ndocker-compose -f key_gen/docker-compose.yml up\n```\n3. (optional but recommended) change mysql env in the .env file\n\n## Mariadb\n\nTo start the mysql version:\n\n```shell\ndocker-compose -f mysql/docker-compose.yml up -d\n```\n\nThis will also create a mariadb container. If you have already a db use:\n\n```shell\ndocker-compose -f mysql/docker-compose.external_db.yml up -d\n```\n\nMake sure the env: `MYSQL_HOST` for the mariadb host and `MYSQL_DB` for the mariadb database name are set.\n\nTo only start the services individual use:\n\n```shell\ndocker-compose -f mysql/docker-compose.api.yml up -d\n```\n\nTo start the api or:\n\n```shell\ndocker-compose -f mysql/docker-compose.file_worker.yml up -d\n```\n\nto start the file background worker.\n\n## Sqlite\n\nBefore to start make sure a sqlite db is already placed into the directory: `db/sqlite`. \nYou can use the db from the sentc-api repository. This dir will be a mounted volume into the docker container.\n\n```shell\ndocker-compose -f sqlite/docker-compose.yml up -d\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsentclose%2Fhosting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsentclose%2Fhosting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsentclose%2Fhosting/lists"}