-
-
Save mvandermeulen/5c6ebfc4d42e3fbb0d95d1e49c38e2c9 to your computer and use it in GitHub Desktop.
An example configuration file for Sebastian Müller's ChatGPT/Mattermost bot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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