Skip to content

Instantly share code, notes, and snippets.

@azigler
Created March 16, 2023 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save azigler/092fb032fbcc51108828c3d7e8abff9c to your computer and use it in GitHub Desktop.
Save azigler/092fb032fbcc51108828c3d7e8abff9c to your computer and use it in GitHub Desktop.
An example configuration file for Sebastian Müller's ChatGPT/Mattermost bot
---
version: "3.7"
services:
chatbot:
container_name: chatgpt
image: yguy/chatgpt-mattermost-bot:latest
build: .
restart: unless-stopped
depends_on:
- mattermost
network_mode: host
environment:
MATTERMOST_URL: http://localhost:8065
MATTERMOST_TOKEN: YOUR-TOKEN-HERE
OPENAI_API_KEY: YOUR-KEY-HERE
mattermost:
container_name: mattermost
image: mattermost/mattermost-team-edition:latest
restart: unless-stopped
user: 0:0
depends_on:
- postgres
environment:
- TZ=UTC
- MM_SQLSETTINGS_DRIVERNAME=postgres
- MM_SQLSETTINGS_DATASOURCE=postgres://postgres:postgres_root@postgres:5432/mattermost?sslmode=disable&connect_timeout=10
- MM_SERVICESETTINGS_SITEURL=http://mattermost:8065
- MM_SERVICESETTINGS_ENABLEUSERACCESSTOKENS=true
- MM_SERVICESETTINGS_ENABLEBOTACCOUNTCREATION=true
- MM_SERVICESETTINGS_ENABLEOAUTHSERVICEPROVIDER=true
- MM_SERVICESETTINGS_ENABLEDEVELOPER=true
- MM_SERVICESETTINGS_ENABLETESTING=true
- MM_PLUGINSETTINGS_AUTOMATICPREPACKAGEDPLUGINS=true
- MM_EXPERIMENTALSETTINGS_ENABLEAPPBAR=true
- MM_PLUGINSETTINGS_ENABLEUPLOADS=true
- MM_LOGSETTINGS_CONSOLELEVEL=DEBUG
- MM_LOGSETTINGS_FILELEVEL=DEBUG
- MM_FILESETTINGS_MAXFILESIZE=123524266
- MM_FEATUREFLAGS_AppsEnabled=true
- MM_FEATUREFLAGS_PluginApps="1.1.0"
volumes:
- /Users/andrew/techne/chatgpt-mattermost-bot/containers/mattermost/config:/mattermost/config
- /Users/andrew/techne/chatgpt-mattermost-bot/containers/mattermost/data:/mattermost/data
- /Users/andrew/techne/chatgpt-mattermost-bot/containers/mattermost/logs:/mattermost/logs
- /Users/andrew/techne/chatgpt-mattermost-bot/containers/mattermost/plugins:/mattermost/plugins
- /Users/andrew/techne/chatgpt-mattermost-bot/containers/mattermost/client/plugins:/mattermost/client/plugins
ports:
- 8065:8065
postgres:
container_name: postgres
image: postgres:latest
restart: unless-stopped
environment:
- TZ=UTC
- POSTGRES_PASSWORD=postgres_root
- POSTGRES_DB=mattermost
volumes:
- /Users/andrew/techne/chatgpt-mattermost-bot/containers/postgres/data:/var/lib/postgresql/data
- /Users/andrew/techne/chatgpt-mattermost-bot/containers/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment