-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more illustrations about using the local disk as the backend (#62)
* add docker-compose.local.yml add an example yml file for using local storage as a backend Signed-off-by: Hongyu Li <[email protected]> * add the illustration of using local disk as backend Signed-off-by: Hongyu Li <[email protected]> --------- Signed-off-by: Hongyu Li <[email protected]>
- Loading branch information
1 parent
62f9007
commit 3e72918
Showing
2 changed files
with
64 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
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copy this file to another location and modify as necessary. | ||
version: '3' | ||
services: | ||
app: | ||
image: jasonwhite0/rudolfs:latest | ||
#build: | ||
# context: . | ||
# dockerfile: Dockerfile | ||
ports: | ||
- "8081:8080" | ||
volumes: | ||
- data:/data | ||
restart: always | ||
environment: | ||
- AWS_ACCESS_KEY_ID | ||
- AWS_SECRET_ACCESS_KEY | ||
- AWS_DEFAULT_REGION | ||
- LFS_ENCRYPTION_KEY | ||
- LFS_S3_BUCKET | ||
- LFS_MAX_CACHE_SIZE | ||
entrypoint: | ||
- /tini | ||
- -- | ||
- /rudolfs | ||
- --cache-dir | ||
- /data | ||
- --key | ||
- ${LFS_ENCRYPTION_KEY} | ||
- --port | ||
- "8080" | ||
- local | ||
- --path=/data | ||
|
||
# A real production server should use nginx. How to configure this depends on | ||
# your needs. Use your Google-search skills to configure this correctly. | ||
# | ||
# nginx: | ||
# image: nginx:stable | ||
# ports: | ||
# - 80:80 | ||
# - 443:443 | ||
# volumes: | ||
# - ./nginx.conf:/etc/nginx/nginx.conf | ||
# - ./nginx/errors.log:/etc/nginx/errors.log | ||
|
||
|
||
volumes: | ||
data: |