This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
72 lines (72 loc) · 2.36 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.9"
networks:
default:
name: "mattermost-apps-dev"
services:
serge:
container_name: serge
image: "ghcr.io/nsarrazin/serge:latest"
restart: "unless-stopped"
volumes:
- "./serge/datadbdb:/data/db"
- "./serge/weights:/usr/src/app/weights"
- "/etc/localtime:/etc/localtime:ro"
ports:
- "8008:8008"
mattermost-apps-ai-bot:
container_name: ai-bot
image: "node:lts-gallium"
restart: "unless-stopped"
depends_on:
- "serge"
working_dir: "/app"
ports:
- "9000:9000"
environment:
MATTERMOST_SITEURL: "http://mattermost:8065"
SERGE_SITEURL: "http://serge:8008"
APP_HOST: "mattermost-apps-ai-bot" # Same as the service's network name
APP_PORT: 9000
volumes:
- "./ai-bot:/app"
command: "bash -c 'npm i && npm start'"
mattermost:
container_name: mattermost
image: "mattermost/mattermost-enterprise-edition:7.9.0"
restart: "unless-stopped"
depends_on:
- "db"
ports:
- "8065:8065"
env_file:
- "./mattermost/.docker.env"
environment:
MM_SQLSETTINGS_DRIVERNAME: "postgres"
MM_SQLSETTINGS_DATASOURCE: "postgres://mmuser:mostest@db/mattermost_test?sslmode=disable\u0026connect_timeout=10"
MM_SERVICESETTINGS_LISTENADDRESS: ":8065"
MM_SERVICESETTINGS_SITEURL: "http://mattermost:8065"
MM_SERVICESETTINGS_ENABLEBOTACCOUNTCREATION: "true"
MM_SERVICESETTINGS_ENABLEUSERACCESSTOKENS: "true"
MM_SERVICESETTINGS_ENABLEOAUTHSERVICEPROVIDER: "true"
MM_SERVICESETTINGS_ENABLEDEVELOPER: "true"
MM_SERVICESETTINGS_ENABLETESTING: "true"
MM_PLUGINSETTINGS_AUTOMATICPREPACKAGEDPLUGINS: "true"
MM_EXPERIMENTALSETTINGS_ENABLEAPPBAR: "true"
MM_EXPERIMENTALSETTINGS_ENABLETUTORIAL: "false"
MM_EXPERIMENTALSETTINGS_ENABLEONBOARDING: "false"
MM_PLUGINSETTINGS_ENABLEUPLOADS: "true"
MM_LOGSETTINGS_CONSOLELEVEL: "DEBUG"
MM_LOGSETTINGS_FILELEVEL: "DEBUG"
MM_SERVICESETTINGS_ENABLELOCALMODE: "true"
MM_FILESETTINGS_MAXFILESIZE: 123524266
MM_FEATUREFLAGS_AppsEnabled: "true"
MM_FEATUREFLAGS_PluginApps: "1.2.0"
volumes:
- "./mattermost/mm-logs:/mattermost/logs:rw"
db:
image: "postgres"
restart: "unless-stopped"
environment:
POSTGRES_PASSWORD: "mostest"
POSTGRES_USER: "mmuser"
POSTGRES_DB: "mattermost_test"