https://github.com/sentclose/hosting
https://github.com/sentclose/hosting
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sentclose/hosting
- Owner: sentclose
- License: agpl-3.0
- Created: 2023-07-03T15:09:05.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T15:17:04.000Z (almost 3 years ago)
- Last Synced: 2023-07-20T16:34:43.020Z (almost 3 years ago)
- Homepage: https://sentc.com/
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sentc api self-hosting
with docker.
Follow the steps to self-host the sentc api with docker compose.
1. Copy and rename the following files:
- `.env.sample` -> `.env`
- `sentc.env.sample` -> `sentc.env`
2. Create a Root key with the sentc key gen and put it in ROOT_KEY:
```bash:no-line-numbers
docker-compose -f key_gen/docker-compose.yml up
```
3. (optional but recommended) change mysql env in the .env file
## Mariadb
To start the mysql version:
```shell
docker-compose -f mysql/docker-compose.yml up -d
```
This will also create a mariadb container. If you have already a db use:
```shell
docker-compose -f mysql/docker-compose.external_db.yml up -d
```
Make sure the env: `MYSQL_HOST` for the mariadb host and `MYSQL_DB` for the mariadb database name are set.
To only start the services individual use:
```shell
docker-compose -f mysql/docker-compose.api.yml up -d
```
To start the api or:
```shell
docker-compose -f mysql/docker-compose.file_worker.yml up -d
```
to start the file background worker.
## Sqlite
Before to start make sure a sqlite db is already placed into the directory: `db/sqlite`.
You can use the db from the sentc-api repository. This dir will be a mounted volume into the docker container.
```shell
docker-compose -f sqlite/docker-compose.yml up -d
```