-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,40 @@ | ||
# lorem Ipsum | ||
Lorem Ipsum is a website where you can upload meme and share it for the whole internet to see, it has enough feature. Like upload image, react, comment, | ||
and delete your post. Its pretty much. I think i can improve it, But here it is. | ||
|
||
## Feature | ||
1. View post that user share | ||
2. React and Comment to that post | ||
3. Account authentication | ||
4. Uploading image and delete it | ||
|
||
## How to host it yourself | ||
1. First create this compose.yaml | ||
```yaml | ||
services: | ||
web: | ||
image: muhhae/lorem-ipsum | ||
ports: | ||
- "8080:8080" | ||
environment: | ||
- MONGO_URI=mongodb://mongodb:27017/data | ||
- PORT=8080 | ||
- JWT_SECRET=${JWT_SECRET} | ||
depends_on: | ||
- mongodb | ||
mongodb: | ||
image: mongo | ||
ports: | ||
- '27017:27017' | ||
volumes: | ||
- mongodb-data:/data/db | ||
volumes: | ||
mongodb-data: | ||
``` | ||
2. Run | ||
```cmd | ||
docker compose up -d | ||
# reload service on change or just update lorem ipsum image | ||
docker compose up -d --pull=muhhae/lorem-ipsum | ||
``` | ||
|