mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 15:10:49 +08:00
update docker related files
This commit is contained in:
2
.github/workflows/go.yml
vendored
2
.github/workflows/go.yml
vendored
@@ -53,7 +53,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile
|
file: ./docker/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -61,7 +61,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile
|
file: ./docker/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/s390x,linux/ppc64le
|
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/s390x,linux/ppc64le
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
45
docker/docker-compose.yml
Normal file
45
docker/docker-compose.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
services:
|
||||||
|
polaris:
|
||||||
|
image: ghcr.io/simon-ding/polaris:latest
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=${TIMEZONE}
|
||||||
|
volumes:
|
||||||
|
- ${CONFIGURATION_FILE_LOCATION}/polaris:/app/data
|
||||||
|
- ${DOWNLOAD_LOCATION}:/downloads
|
||||||
|
- ${MEDIA_LOCATION}:/data
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
transmission:
|
||||||
|
image: lscr.io/linuxserver/transmission:latest
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=${TIMEZONE}
|
||||||
|
volumes:
|
||||||
|
- ${CONFIGURATION_FILE_LOCATION}/transmission:/config
|
||||||
|
- ${DOWNLOAD_LOCATION}:/downloads
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
ports:
|
||||||
|
- 9091:9091
|
||||||
|
- 51413:51413
|
||||||
|
- 51413:51413/udp
|
||||||
|
prowlarr:
|
||||||
|
image: lscr.io/linuxserver/prowlarr:latest
|
||||||
|
container_name: prowlarr
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=${TIMEZONE}
|
||||||
|
volumes:
|
||||||
|
- ${CONFIGURATION_FILE_LOCATION}/prowlar:/config
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
ports:
|
||||||
|
- 9696:9696
|
||||||
|
restart: unless-stopped
|
||||||
12
docker/example.env
Normal file
12
docker/example.env
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#下载路径
|
||||||
|
DOWNLOAD_LOCATION=/downloads
|
||||||
|
|
||||||
|
#媒体数据存储路径,也可以启动自己配置webdav存储
|
||||||
|
MEDIA_LOCATION=/data
|
||||||
|
|
||||||
|
#程序配置文件存放路径
|
||||||
|
CONFIGURATION_FILE_LOCATION=./config
|
||||||
|
|
||||||
|
#时区
|
||||||
|
TIMEZONE=Asia/Shanghai
|
||||||
|
|
||||||
@@ -9,4 +9,4 @@ chown -R "${PUID}:${PGID}" /app/data
|
|||||||
umask ${UMASK:-022}
|
umask ${UMASK:-022}
|
||||||
|
|
||||||
cd /app
|
cd /app
|
||||||
exec gosu "${PUID}:${PGID}" /app/polaris
|
exec gosu "${PUID}:${PGID}" /app/polaris -port ${PORT:-8080}
|
||||||
Reference in New Issue
Block a user