-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: added links * docs: added links * docs: added links * add favicon * docs: add favicon
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
MATTERMOST_DB_USER=mattermost | ||
MATTERMOST_DB=mattermost | ||
MATTERMOST_DB_PASSWORD=mattermost | ||
|
42 changes: 42 additions & 0 deletions
42
exercise_solutions/compose/mattermost/mattermost-compose.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
services: | ||
|
||
mattermost: | ||
container_name: mattermost | ||
image: mattermost/mattermost-team-edition | ||
ports: | ||
- "8065:8065" | ||
environment: | ||
- MM_USERNAME=${MATTERMOST_DB_USER} | ||
- MM_SQLSETTINGS_DRIVERNAME=mysql | ||
- MM_SQLSETTINGS_DATASOURCE=${MATTERMOST_DB_USER}:${MATTERMOST_DB_PASSWORD}@tcp(mysql-mattermost:3306)/mattermost?charset=utf8mb4,utf8&readTimeout=30s&writeTimeout=30s | ||
- MM_PASSWORD=${MATTERMOST_DB_PASSWORD} | ||
- MM_DBNAME=${MATTERMOST_DB} | ||
- DB_PORT_PORT_NUMBER=3306 | ||
- DB_HOST=mysql-mattermost | ||
depends_on: | ||
- mysql-mattermost | ||
volumes: | ||
- mattermost_data:/mattermost/data:rw | ||
- mattermost_config:/mattermost/config:rw | ||
- mattermost_plugins:/mattermost/plugins:rw | ||
- mattermost_logs:/mattermost/logs:rw | ||
|
||
mysql-mattermost: | ||
image: mysql:latest | ||
container_name: mysql-mattermost | ||
environment: | ||
- TZ=Europe/Rome | ||
- MYSQL_USER=${MATTERMOST_DB_USER} | ||
- MYSQL_ROOT_PASSWORD=rootpassword | ||
- MYSQL_PASSWORD=${MATTERMOST_DB_PASSWORD} | ||
- MYSQL_DATABASE=${MATTERMOST_DB} | ||
volumes: | ||
- mysql-mattermost:/var/lib/mysql | ||
|
||
volumes: | ||
mattermost_data: | ||
mattermost_config: | ||
mattermost_logs: | ||
mattermost_plugins: | ||
mysql-mattermost: | ||
|