adding dockerfile and messing with containers
parent
612d5a3446
commit
cc28fafdac
@ -0,0 +1,26 @@
|
|||||||
|
# Use Debian 9 because it's da best
|
||||||
|
FROM debian:9
|
||||||
|
|
||||||
|
# Establish environment variables/paths
|
||||||
|
ENV APP_DIR=/srv
|
||||||
|
|
||||||
|
# Work in app directory
|
||||||
|
WORKDIR $APP_DIR
|
||||||
|
|
||||||
|
# Install system packages required for building app
|
||||||
|
RUN apt-get update && apt-get install -y python-pip transmission-daemon
|
||||||
|
|
||||||
|
# Add application user so we're not running as root
|
||||||
|
RUN useradd -m swashbuckler
|
||||||
|
|
||||||
|
# Copy python library requirements
|
||||||
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
# Install application dependencies
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
# Drop transmission config
|
||||||
|
COPY settings.json /etc/transmission-daemon/settings.json
|
||||||
|
|
||||||
|
|
||||||
|
CMD /usr/bin/transmission-daemon --config-dir /etc/transmission-daemon/settings.json
|
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"blocklist-enabled": 0,
|
||||||
|
"download-dir": "\/data\/downloads",
|
||||||
|
"download-limit": 100,
|
||||||
|
"download-limit-enabled": 0,
|
||||||
|
"encryption": 1,
|
||||||
|
"max-peers-global": 200,
|
||||||
|
"peer-port": 51413,
|
||||||
|
"pex-enabled": 1,
|
||||||
|
"port-forwarding-enabled": 0,
|
||||||
|
"rpc-authentication-required": false,
|
||||||
|
"rpc-bind-address": "0.0.0.0",
|
||||||
|
"rpc-enabled": true,
|
||||||
|
"rpc-password": "",
|
||||||
|
"rpc-port": 9091,
|
||||||
|
"rpc-url": "/transmission/",
|
||||||
|
"rpc-username": "transmission",
|
||||||
|
"rpc-whitelist": "0.0.0.0/0",
|
||||||
|
"rpc-whitelist-enabled": true,
|
||||||
|
"upload-limit": 100,
|
||||||
|
"upload-limit-enabled": 0
|
||||||
|
}
|
Loading…
Reference in New Issue