Dockerfiles and images are available in images/
for configuring and running Teleirc. Install Docker onto the machine you plan to run Teleirc from.
Official Node Alpine Linux, and Fedora images are provided (ordered ascending by size).
Image | File | Size |
---|---|---|
Node Alpine Linux (node:8-alpine ) |
Dockerfile.alpine |
374 MB |
Fedora latest | Dockerfile.fedora |
569 MB |
This guide uses alpine
. If you wish to use fedora
, replace alpine
with fedora
.
You will see errors during yarn
. You can safely ignore them. They are not fatal.
docker build . -f images/Dockerfile.alpine -t teleirc
docker run -d -u teleirc --name teleirc --restart always \
-e TELEIRC_TOKEN="000000000:AAAAAAaAAa2AaAAaoAAAA-a_aaAAaAaaaAA" \
-e IRC_CHANNEL="#channel" \
-e IRC_BOT_NAME="teleirc" \
-e IRC_BLACKLIST="CowSayBot,AnotherNickToIgnore" \
-e TELEGRAM_CHAT_ID="-0000000000000" \
teleirc
Optionally, you may use docker-compose. We provide an example compose file (images/docker-compose.yml
).
version: '2'
services:
teleirc:
user: teleirc
build:
context: ..
dockerfile: images/Dockerfile.alpine
env_file: .env
Run these commands to begin using Teleirc with Docker Compose.
- Copy
docker-compose.yml.example
todocker-compose.yml
and edit if you do not wish to use the alpine image - Copy
.env.example
to.env
and edit accordingly. docker-compose up -d teleirc