Skip to content

Commit

Permalink
docker compose example
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyao9184 committed Nov 8, 2024
1 parent d456b32 commit 4fffc75
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
77 changes: 77 additions & 0 deletions docker/up/configs.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[basic]
host = "0.0.0.0"
port = 8090
ssl-key = ""
ssl-cert = ""
repos-path = "/data/repos"
cache-size-limit = ""
cache-clean-strategy = "LRU"
hf-scheme = "https"
hf-netloc = "huggingface.co"
hf-lfs-netloc = "cdn-lfs.huggingface.co"
mirror-scheme = "http"
mirror-netloc = "localhost:8090"
mirror-lfs-netloc = "localhost:8090"
mirrors-path = ["/data/mirrors"]


[accessibility]
offline = false


[[accessibility.proxy]]
repo = "*"
allow = true

[[accessibility.proxy]]
repo = "*/*"
allow = true

[[accessibility.proxy]]
repo = "vikp/surya_det3"
allow = false

# [[accessibility.proxy]]
# repo = "vikp/surya_layout3"
# allow = true

# [[accessibility.proxy]]
# repo = "vikp/surya_order"
# allow = true

# [[accessibility.proxy]]
# repo = "vikp/surya_rec2"
# allow = true

# [[accessibility.proxy]]
# repo = "vikp/surya_tablerec"
# allow = true


[[accessibility.cache]]
repo = "*"
allow = true

[[accessibility.cache]]
repo = "*/*"
allow = true

[[accessibility.cache]]
repo = "vikp/surya_det3"
allow = false

# [[accessibility.cache]]
# repo = "vikp/surya_layout3"
# allow = true

# [[accessibility.cache]]
# repo = "vikp/surya_order"
# allow = true

# [[accessibility.cache]]
# repo = "vikp/surya_rec2"
# allow = true

# [[accessibility.cache]]
# repo = "vikp/surya_tablerec"
# allow = true
13 changes: 13 additions & 0 deletions docker/up/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


services:
olah:
image: xiaoyao9184/olah:lastet
container_name: olah
command: -c /app/configs.toml
ports:
- 8090:8090
volumes:
- ./configs.toml:/app/configs.toml
- ./mirrors:/data/mirrors
- ./repos:/data/repos
2 changes: 2 additions & 0 deletions docker/up/mirrors/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions docker/up/repos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore

0 comments on commit 4fffc75

Please sign in to comment.