Updating docker config
This commit is contained in:
parent
3a8ef207ad
commit
d4c4f4d93a
5 changed files with 43 additions and 12 deletions
|
|
@ -7,18 +7,18 @@ COPY --chmod=755 ${TARGETPLATFORM}/rqbit /bin/rqbit
|
|||
|
||||
WORKDIR /home/rqbit
|
||||
|
||||
ENV XDG_DATA_HOME=/home/rqbit/config
|
||||
ENV XDG_DATA_HOME=/home/rqbit/db
|
||||
ENV XDG_CACHE_HOME=/home/rqbit/cache
|
||||
|
||||
ENV RQBIT_HTTP_API_LISTEN_ADDR=0.0.0.0:3000
|
||||
ENV RQBIT_HTTP_API_LISTEN_ADDR=0.0.0.0:3030
|
||||
ENV RQBIT_TCP_LISTEN_MIN_PORT=4240
|
||||
ENV RQBIT_TCP_LISTEN_MAX_PORT=4241
|
||||
ENV RQBIT_TCP_LISTEN_MAX_PORT=4260
|
||||
|
||||
VOLUME /home/rqbit/config
|
||||
VOLUME /home/rqbit/db
|
||||
VOLUME /home/rqbit/cache
|
||||
VOLUME /home/rqbit/output
|
||||
VOLUME /home/rqbit/downloads
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 3030
|
||||
EXPOSE 4240
|
||||
CMD ["server", "start", "/home/rqbit/output"]
|
||||
CMD ["server", "start", "/home/rqbit/downloads"]
|
||||
ENTRYPOINT ["/bin/rqbit"]
|
||||
|
|
|
|||
27
docker/compose-examples/server.yaml
Normal file
27
docker/compose-examples/server.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
services:
|
||||
rqbit:
|
||||
image: ikatson/rqbit:v7.0.0-beta.3
|
||||
# Host network required for several things to work:
|
||||
# - upnp discovery for port forwarding to your router
|
||||
# - upnp UDP multicast announce MediaServer
|
||||
# - upnp server UDP multicast
|
||||
network_mode: host
|
||||
ports:
|
||||
- 3030:3030 # HTTP API port
|
||||
- 4240:4240 # TCP BitTorrent port
|
||||
environment:
|
||||
# Replace this with your LAN hostname or IP, resolvable from other devices in your LAN
|
||||
RQBIT_UPNP_SERVER_HOSTNAME: 192.168.0.112
|
||||
RQBIT_UPNP_SERVER_FRIENDLY_NAME: rqbit-docker
|
||||
|
||||
# Replace this if you want to change the HTTP/Web UI port
|
||||
# RQBIT_HTTP_API_LISTEN_ADDR: 0.0.0.0:3030
|
||||
volumes:
|
||||
- db:/home/rqbit/db
|
||||
- cache:/home/rqbit/cache
|
||||
# Replace /tmp/scratch with your downloads folder
|
||||
- /tmp/scratch:/home/rqbit/downloads
|
||||
|
||||
volumes:
|
||||
db: {}
|
||||
cache: {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue