diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..54641c5 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +# ignore .git and .cache folders +.git +README.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..99883a1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:latest as certs +RUN apk --update add ca-certificates + +FROM bash:latest +COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +COPY transmission-telegram / +RUN chmod 777 transmission-telegram + +ENTRYPOINT ["/transmission-telegram"] \ No newline at end of file diff --git a/README.md b/README.md index 4c68c3e..28bb534 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,9 @@ -## Install +## CLI + +### Install Just [download](https://github.com/pyed/transmission-telegram/releases) the appropriate binary for your OS, place `transmission-telegram` in your `$PATH` and you are good to go. @@ -12,4 +14,48 @@ Or if you have `Go` installed: `go get -u github.com/pyed/transmission-telegram` ## Usage -[Wiki](https://github.com/pyed/transmission-telegram/wiki) \ No newline at end of file +[Wiki](https://github.com/pyed/transmission-telegram/wiki) + + +## Docker Alternate Installation Route + +### Standalone + +``` +docker run -d --name transmission-telegram \ +kevinhalpin/transmission-telegram:latest \ +-token= \ +-master= \ +-url= \ +-username= \ +-password= +``` + +### docker-compose Example + +``` +version: '2.4' +services: + transmission: + container_name: transmission + environment: + - PUID=${PUID_DOCKUSER} + - PGID=${PGID_APPZ} + image: linuxserver/transmission + network_mode: 'host' + hostname: 'transmission' + volumes: + - ${CONFIG}/transmission:/config + - ${DATA}/transmission/downloads:/downloads + +telegram-transmission-bot: + container_name: telegram-transmission-bot + restart: on-failure + depends_on: + - transmission + - plex + - emby + network_mode: 'host' + image: kevinhalpin/transmission-telegram:latest + command: '-token=${TELEGRAM_TRANSMISSION_BOT} -master=${TELEGRAM_USERNAME} -url=${TRANSMISSION_URL} - username=${TRANSMISSION_USERNAME} -password=${PASS}' +```