-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from kongying-tavern/feat/img-host-alist
feat: 添加本地图床 Docker 服务
- Loading branch information
Showing
39 changed files
with
1,334 additions
and
35 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
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
9 changes: 9 additions & 0 deletions
9
docker/composer/docker-compose.img-alist-build.alist-init.Dockerfile
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,9 @@ | ||
FROM mcr.microsoft.com/powershell | ||
|
||
WORKDIR /data | ||
ADD docker/config/img-alist-builder/alist-init . | ||
|
||
RUN chmod -R +x /data/*.ps1 | ||
|
||
VOLUME ["/data/record"] | ||
ENTRYPOINT ["pwsh", "/data/init.ps1"] |
10 changes: 10 additions & 0 deletions
10
docker/composer/docker-compose.img-alist-build.alist.Dockerfile
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,10 @@ | ||
FROM xhofe/alist | ||
|
||
WORKDIR /alist | ||
ADD docker/config/img-alist-builder/alist . | ||
|
||
RUN chmod -R +x /alist/*.sh | ||
|
||
VOLUME ["/alist/data"] | ||
EXPOSE 5244 | ||
ENTRYPOINT ["bash", "/alist/startup.sh"] |
14 changes: 14 additions & 0 deletions
14
docker/composer/docker-compose.img-alist-build.minio-img2webp.Dockerfile
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,14 @@ | ||
# Builder | ||
FROM golang:1.21-bookworm AS builder | ||
|
||
WORKDIR /data | ||
ADD docker/config/img-alist-builder/minio-image-to-webp . | ||
|
||
RUN go env -w GOPROXY=https://goproxy.io,direct && \ | ||
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" | ||
|
||
# Runner | ||
FROM amd64/debian:bookworm AS runner | ||
WORKDIR /data | ||
COPY --from=builder /data/minio-image-to-webp ./minio-image-to-webp | ||
ENTRYPOINT ["/data/minio-image-to-webp"] |
9 changes: 9 additions & 0 deletions
9
docker/composer/docker-compose.img-alist-build.minio-init.Dockerfile
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,9 @@ | ||
FROM minio/mc:latest | ||
|
||
WORKDIR /data | ||
ADD docker/config/img-alist-builder/minio-init . | ||
|
||
RUN chmod +x /data/init.sh | ||
|
||
VOLUME ["/data/record"] | ||
ENTRYPOINT ["bash", "/data/init.sh"] |
12 changes: 12 additions & 0 deletions
12
docker/composer/docker-compose.img-alist-build.minio-proxy.Dockerfile
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,12 @@ | ||
FROM nginx:1.25-alpine | ||
|
||
WORKDIR /data | ||
ADD docker/config/img-alist-builder/minio-proxy /etc/nginx | ||
|
||
RUN mkdir -p ./log && \ | ||
mkdir -p ./cache/proxy_temp_dir && \ | ||
mkdir -p ./cache/proxy_cache_dir && \ | ||
chown -R nginx:nginx . | ||
|
||
VOLUME ["/data/cache", "/data/log"] | ||
EXPOSE 80 |
13 changes: 13 additions & 0 deletions
13
docker/composer/docker-compose.img-alist-build.minio.Dockerfile
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,13 @@ | ||
FROM minio/minio | ||
|
||
WORKDIR /minio | ||
ADD docker/config/img-alist-builder/minio . | ||
|
||
RUN chmod -R +x /minio/*.sh | ||
|
||
VOLUME ["/data", "/root/.minio"] | ||
|
||
EXPOSE 9000 | ||
EXPOSE 9999 | ||
|
||
ENTRYPOINT ["bash", "/minio/startup.sh"] |
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,34 @@ | ||
services: | ||
# Main services | ||
minio: | ||
image: gsapi/minio | ||
build: | ||
context: ${PROJECT_BASE} | ||
dockerfile: docker/composer/docker-compose.img-alist-build.minio.Dockerfile | ||
minio-proxy: | ||
image: gsapi/minio-proxy | ||
build: | ||
context: ${PROJECT_BASE} | ||
dockerfile: docker/composer/docker-compose.img-alist-build.minio-proxy.Dockerfile | ||
minio-img2webp: | ||
image: gsapi/minio-img2webp | ||
build: | ||
context: ${PROJECT_BASE} | ||
dockerfile: docker/composer/docker-compose.img-alist-build.minio-img2webp.Dockerfile | ||
alist: | ||
image: gsapi/alist | ||
build: | ||
context: ${PROJECT_BASE} | ||
dockerfile: docker/composer/docker-compose.img-alist-build.alist.Dockerfile | ||
|
||
# Initialization services | ||
minio-init: | ||
image: gsapi/minio-init | ||
build: | ||
context: ${PROJECT_BASE} | ||
dockerfile: docker/composer/docker-compose.img-alist-build.minio-init.Dockerfile | ||
alist-init: | ||
image: gsapi/alist-init | ||
build: | ||
context: ${PROJECT_BASE} | ||
dockerfile: docker/composer/docker-compose.img-alist-build.alist-init.Dockerfile |
Oops, something went wrong.