Install on Docker
We won't help with issues relating to Docker installation/troubleshooting. Please ensure docker is installed correctly before installing Bastion on docker.
Commands are denoted by
$. Lines without it are sample/expected output.
$ docker run hello-world
Hello from Docker
This message shows that your installation appears to be working correctly.
If get the output as per above you should be good to go. If you have to run docker as root, ensure your user is in the
usermod -aG docker $USER)
Docker runs on Linux, macOS and Windows so syntax should for the most part be interchangeable.
Ensure you have MongoDB installed either locally on a machine on your local network OR have MongoDB Atlas setup and ready. The base Bastion image Does Not include Mongo.
Make sure to keep your Atlas connection url, database user and password handy.
Bastion's Docker image has support for ENV's now so unless you need to run cron jobs or wish to have more than 2 prefixes or owners i would recommend sticking to using ENV's.
If you intend to run the image on a system that you don't own i recommend filling out an env file and passing in the ENV's through that. otherwise anyone who has access to the docker runtime can pull your bot token.
Pull the Docker image:
$ docker pull joshj23/bastionbot
Using default tag: latest
latest: Pulling from joshj23/bastionbot
Status: Image is up to date for joshj23/bastionbot:latest
If you wish to skip using ENV's you can still use config files akin to how it was done in V7.
You'll want to grab the
configurations.example.yamlfrom Bastion's Github repository. rename them to
At this stage, we are done, If you don't plan to use config files, head over to the
Run on dockerpage, otherwise keep reading.
Head over to the
Configure Bastionpage and once configured, head over to the
Run on Dockerpage