Skip to content

Commit

Permalink
Add docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
richardr1126 committed Dec 13, 2024
1 parent d611363 commit 6d984be
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ cp example.env .env
Open `.env` in your preferred text editor and fill in the necessary variables.
> **Note:** To obtain `CHRONO_TRENDING_URI`, publish the feed first using `publish_feed.py`.
Using docker-compose:
```shell
docker compose up --build --remove-orphans
```

Build and run Docker image:
```shell
docker build --rm -t myfeed .
Expand Down
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
app:
image: richardr1126/cosmere-feed-bsky
build:
context: .
env_file:
- .env
ports:
- "8000:8000"
volumes:
- feeddata:/var/data
stdin_open: true
tty: true

volumes:
feeddata:
Binary file removed dragonsteel.jpg
Binary file not shown.

0 comments on commit 6d984be

Please sign in to comment.