forked from mattermost/mattermost
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Docker to be modular and use docker-compose
This commit updates the Dockerfile to separate out redis and mysql, and adds a docker-compose.yml file for use with docker-compose to build the containers as a group. Refer to docker-compose documentation for info. This is not intended for production - to simplify handling of email, all mail is being sunk to http://127.0.0.1:8001/ via a web UI. This makes it easier to test where you don't have a valid email server. Configuration can be adjusted in config/config_docker.json. Known issues at present: - Attachments/uploads should be put into a data volume for portability - The installation thinks the hostname is 0.0, and the redirect after setup appears to be incorrect. There are likely other issues - this is more intended as a proof-of-concept. The (reduced) Dockerfile can likely be further simplified and improved.
- Loading branch information
Showing
4 changed files
with
44 additions
and
147 deletions.
There are no files selected for viewing
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
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
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,31 @@ | ||
mysql: | ||
image: mysql:5.6 | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=secretmysqlrootuserpassword | ||
- MYSQL_USER=mmuser | ||
- MYSQL_PASSWORD=mostest | ||
- MYSQL_DATABASE=mattermost_test | ||
volumes_from: | ||
- dbdata | ||
|
||
redis: | ||
image: redis:3.0 | ||
|
||
dbdata: | ||
image: cogniteev/echo | ||
volumes: | ||
- /var/lib/mysql | ||
|
||
app: | ||
build: . | ||
links: | ||
- mysql | ||
- redis | ||
ports: | ||
- "8000:80" | ||
|
||
mail: | ||
image: weave/rest-smtp-sink | ||
ports: | ||
- "8001:80" |
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