Add support for docker-compose

This commit is contained in:
Ryan Trauntvein
2015-06-18 11:18:00 -07:00
parent 8ab422143d
commit da2eab97aa
2 changed files with 35 additions and 0 deletions

View File

@@ -86,6 +86,23 @@ Now go to `http://<ipdockerisboundto>/setup` and have fun!
Note: When running in production you should ensure that you enable SSL.
This is commonly achieved by running Nginx with your certificates on your Docker host, service or load balancers in-front of the running container, or by adding your custom SSL certificates and configuration to the supplied Nginx configuration.
### docker-compose
Quickly launch Cachet and MySQL docker images with [docker-compose](https://docs.docker.com/compose/)
```bash
git clone https://github.com/cachethq/Cachet.git
cd Cachet
docker-compose build
docker-compose up
```
To initialize the database, utilize [docker exec](https://docs.docker.com/reference/commandline/cli/#exec):
```bash
docker exec -it cachet_cachet_1 php artisan migrate --force
```
Continue to `http://<ipdockerisboundto>/setup` to configure Cachet.
## Addons
- [cachet-monitor](https://github.com/castawaylabs/cachet-monitor) - For URL monitoring. Automatic incident updates.

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
mysql:
image: mysql:5.6
environment:
- MYSQL_ROOT_PASSWORD=cachet
- MYSQL_DATABASE=cachet
- MYSQL_USER=cachet
- MYSQL_PASSWORD=cachet
cachet:
build: .
ports:
- 80:8000
links:
- mysql:mysql
environment:
- DB_HOST=mysql
- DB_DATABASE=cachet
- DB_USERNAME=cachet
- DB_PASSWORD=cachet