Skip to content
Snippets Groups Projects
Commit 6730d0da authored by nimrod's avatar nimrod
Browse files

Dump of previous work.

parent 6a6fb728
No related branches found
No related tags found
No related merge requests found
---
rtorrent:
build: rtorrent/
rutorrent:
build: rutorrent/
volumes_from:
- rtorrent
links:
- rtorrent
FROM alpine
RUN apk add --update rtorrent && \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/* && \
mkdir -p /var/lib/rtorrent /srv/downloads && \
chown nobody /var/lib/rtorrent /srv/downloads
COPY rtorrent.rc /etc/rtorrent.rc
EXPOSE 5000 51413 51414
USER nobody
VOLUME /srv/downloads
ENV TERM xterm
CMD /usr/bin/rtorrent -o import=/etc/rtorrent.rc
directory = /srv/downloads
session = /var/lib/rtorrent
port_range = 51413-51413
scgi_port = 0.0.0.0:5000
use_udp_trackers = yes
encryption = allow_incoming,require,prefer_plaintext,try_outgoing
dht = auto
dht_port = 51414
FROM alpine
RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories && \
echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
apk add --update rutorrent@testing apache2 php-apache2 && \
ln -sf /dev/stdout /var/log/apache2/access.log && \
ln -sf /dev/stdout /var/log/apache2/other_vhosts_access.log && \
ln -sf /dev/stderr /var/log/apache2/error.log && \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
CMD /usr/bin/php /var/www/rutorrent/php/initplugins.php; /usr/sbin/apache2ctl -DFOREGROUND
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment