The PhantomBot stable build.
Use with Docker Compose:
#
# Copyright (C) 2016-2022 phantombot.github.io/PhantomBot
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Compose spec version. Do not change
version: '3.2'
services:
# Service name, used internally by Docker Compose. Can be changed but does not matter
phantombot:
# Container name, this will show up in Docker command output, Docker Desktop, Portainer, etc
# If running multiple bot instances, this should be changed so you will know which bot this instance belongs to
container_name: phantombot
# Image to pull, automatically selects the latest version when creating the container
image: gmt2001/phantombot-stable
#
# Maps the panel port so it is accessible to the host and, if firewall settings allow, the internet
ports:
# The port the bot webserver listens on in the container
# This should not be changed, and the baseport setting in botlogin.txt should not be changed
# It is not necessary with Docker since this is internal to each individual container instance
- target: 25000
#
# The port the bot webserver will be published to on the host
# This is the number that should be changed when hosting multiple bot instances on the same server
published: 25000
#
# TCP protocol for HTTP. Do not change
protocol: tcp
# The restart policy. "always" or "unless-stopped" are the recommended values and are required to use the panel restart button
# "unless-stopped": The container auto-restarts. If you stop the container using a Docker command, it will stay stopped until you start it using a Docker command
# "always": The container always auto-restarts. If you stop the container using a Docker command, it will auto-restart if the Docker service or server restarts
restart: always
volumes:
# Defines the volume mount for data persistence inside the container, do not change
# See the bottom of this file for the part you can change
- PhantomBot_data:/opt/PhantomBot_data
environment:
# ------ Set any botlogin.txt variable here, with the PHANTOMBOT_ prefix
# ------ Note that after first run, botlogin.txt takes priority
# ------ The next 4 variables provided are required to be set to valid values for first run
# Twitch bot user (Required)
PHANTOMBOT_USER: ""
# Twitch caster channel (Required)
PHANTOMBOT_CHANNEL: ""
# Webinterface username (Required)
PHANTOMBOT_PANELUSER: ""
# Webinterface password (Required)
PHANTOMBOT_PANELPASSWORD: ""
# Enables the restart button in the panel
PHANTOMBOT_RESTARTCMD: "/opt/PhantomBot/restartbot-docker.sh"
volumes:
# It is recommended to leave this as it is with nothing after the colon (:)
# This allows Docker to handle your data volume and associated permissions
# with a guarantee that they will work properly
#
# If you still want mount to a host directory, this is where you do it, after the colon (:)
PhantomBot_data:
Content type
Image
Digest
sha256:e64b17a59…
Size
197.2 MB
Last updated
26 days ago
docker pull gmt2001/phantombot-stable