Skip to content

Instantly share code, notes, and snippets.

@ervitis
Last active February 20, 2021 18:44
Show Gist options
  • Save ervitis/72575d74ac402bcd81c1f3e059be6b64 to your computer and use it in GitHub Desktop.
Save ervitis/72575d74ac402bcd81c1f3e059be6b64 to your computer and use it in GitHub Desktop.
automute-us
DISCORD_BOT_TOKEN= # include the bot token https://github.com/denverquane/automuteus#self-hosting
POSTGRES_ADDR=postgres:5432
POSTGRES_USER=postgres
POSTGRES_PASS=My_p4Ssw0rd!
AUTOMUTEUS_TAG=6
BROKER_PORT=8123
AUTOMUTEUS_REDIS_ADDR=redis:6379
GALACTUS_REDIS_ADDR=redis:6379
GALACTUS_TAG=2.4.1
GALACTUS_HOST=
GALACTUS_EXTERNAL_PORT=
GALACTUS_PORT=5858
GALACTUS_ADDR=http://galactus:5858
version: "3"
services:
automuteus:
# Either:
# - Use a prebuilt image
image: denverquane/amongusdiscord:${AUTOMUTEUS_TAG}
# - Build image from local source
#build: .
# - Build image from github directly
build: http://github.com/denverquane/automuteus.git
restart: always
env_file: .env
ports:
# 5000 is the default service port
# Format is HostPort:ContainerPort
- ${SERVICE_PORT:-5000}:5000
environment:
# These are required and will fail if not present
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}
- HOST=${GALACTUS_HOST}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASS=${POSTGRES_PASS}
# These Variables are optional
- WORKER_BOT_TOKENS=${WORKER_BOT_TOKENS:-}
- EMOJI_GUILD_ID=${EMOJI_GUILD_ID:-}
- CAPTURE_TIMEOUT=${CAPTURE_TIMEOUT:-}
- AUTOMUTEUS_LISTENING=${AUTOMUTEUS_LISTENING:-}
# Do **NOT** change this
- REDIS_ADDR=${AUTOMUTEUS_REDIS_ADDR}
- GALACTUS_ADDR=${GALACTUS_ADDR}
- POSTGRES_ADDR=${POSTGRES_ADDR}
depends_on:
- redis
- galactus
- postgres
volumes:
- "bot-logs:/app/logs"
galactus:
env_file: .env
ports:
# See sample.env for details, but in general, match the GALACTUS_EXTERNAL_PORT w/ the GALACTUS_HOST's port
- ${GALACTUS_EXTERNAL_PORT:-8123}:${BROKER_PORT}
image: automuteus/galactus:${GALACTUS_TAG}
restart: always
environment:
# Do **NOT** change these
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}
- BROKER_PORT=${BROKER_PORT}
- REDIS_ADDR=${GALACTUS_REDIS_ADDR}
- GALACTUS_PORT=${GALACTUS_PORT}
depends_on:
- redis
redis:
image: redis:alpine
restart: always
hostname: redis
volumes:
- "redis-data:/data"
postgres:
hostname: postgres
env_file: .env
image: postgres:12-alpine
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASS}
volumes:
- "postgres-data:/var/lib/postgresql/data"
volumes:
bot-logs:
redis-data:
postgres-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment