Skip to content

Commit 674e698

Browse files
author
Rajat Saxena
committed
Fixed MediaLit self hosting
1 parent 75f942d commit 674e698

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

apps/docs/src/pages/en/self-hosting/self-host.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ To self host, follow the following steps.
9090

9191
```
9292
# - MEDIALIT_APIKEY=${MEDIALIT_APIKEY}
93-
# - MEDIALIT_SERVER=http://host.docker.internal:8000
93+
# - MEDIALIT_SERVER=http://medialit
9494
```
9595
9696
2. Uncomment the block titled `MediaLit` in `docker-compose.yml`.
@@ -109,8 +109,15 @@ To self host, follow the following steps.
109109
MEDIALIT_APIKEY=key_to_be_obtained_docker_compose_logs
110110
```
111111
112-
4. Restart the services once to generate a user and an API key in MediaLit database. The API key
113-
will be printed to the docker compose logs. The relevant logs will look something like the following.
112+
To learn how to configure an AWS S3 bucket for MediaLit, click [here](https://github.com/codelitdev/medialit?tab=readme-ov-file#setting-up-correct-access-on-aws-s3-bucket).
113+
114+
4. Start the MediaLit service once to generate an API key to use with CourseLit.
115+
116+
```sh
117+
docker compose up medialit
118+
```
119+
120+
The above command will start the MediaLit service and display a fresh API key on the console. The relevant logs will look something like the following.
114121
115122
```sh
116123
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

deployment/docker/docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ services:
5656
# The MEDIALIT_APIKEY can be obtained by running the medialit service locally and
5757
# checking the logs for the API key.
5858
# - MEDIALIT_APIKEY=${MEDIALIT_APIKEY}
59-
# - MEDIALIT_SERVER=http://host.docker.internal:8000
59+
# - MEDIALIT_SERVER=http://medialit
6060

6161
expose:
6262
- "${PORT:-80}"
@@ -153,6 +153,10 @@ services:
153153
# - CLOUDFRONT_KEY_PAIR_ID=${CLOUDFRONT_KEY_PAIR_ID}
154154
# - CLOUDFRONT_PRIVATE_KEY=${CLOUDFRONT_PRIVATE_KEY}
155155
# - CDN_MAX_AGE=${CDN_MAX_AGE}
156+
157+
# # To make MediaLit work on local. This allows the medialit service
158+
# # to be accessed from the host machine.
159+
# - HOSTNAME_OVERRIDE=localhost:8000
156160
# ports:
157161
# - "8000:80"
158162
# depends_on:

0 commit comments

Comments
 (0)