Skip to content

Commit

Permalink
更新dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyun8023 committed Jul 28, 2024
1 parent de634fa commit a2ba6c2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ COPY config.yaml ./
COPY pages/ ./
EXPOSE 8080

USER nonroot:nonroot

ENTRYPOINT ["/app/calibre-api"]
33 changes: 33 additions & 0 deletions docker-compose-yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
services:
# main service
calibre-api:
restart: unless-stopped
container_name: calibre-api
image: ghcr.io/jianyun8023/calibre-api:latest
volumes:
- /book/calibre/library:/book/calibre/library
ports:
- "8080:8080"
environment:
- TZ=Asia/Shanghai
- CALIBRE_DEBUG=true
- CALIBRE_STATIC_DIR=/app/static
- CALIBRE_TEMPLATE_DIR=/app/templates
- CALIBRE_SEARCH_HOST=http://meilisearch:7700
#- CALIBRE_SEARCH_APIKEY=
- CALIBRE_SEARCH_INDEX=books
- CALIBRE_SEARCH_TRIMPATH=/data/calibre/library
- CALIBRE_STORAGE_USE=local
- CALIBRE_STORAGE_TMPDIR=/tmp
- CALIBRE_STORAGE_LOCAL_PATH=/book/calibre/library
depends_on:
- meilisearch
meilisearch:
restart: unless-stopped
container_name: meilisearch
image: getmeili/meilisearch:v1.9
volumes:
- ./meili_data:/meili_data
ports:
- "7700:7700"

0 comments on commit a2ba6c2

Please sign in to comment.