Working Cachet
This commit is contained in:
parent
932408ad8b
commit
e4a49c9ba2
|
@ -0,0 +1,2 @@
|
|||
POSTGRES_USER=cachet
|
||||
POSTGRES_PASSWORD=<changme>
|
|
@ -0,0 +1,26 @@
|
|||
PORT=<changme>
|
||||
|
||||
CACHE_DRIVER=database
|
||||
SESSION_DRIVER=database
|
||||
QUEUE_DRIVER=database
|
||||
DB_DRIVER=pgsql
|
||||
DB_HOST=postgres
|
||||
DB_PORT=5432
|
||||
DB_DATABASE=cachet
|
||||
DB_USERNAME=cachet
|
||||
DB_PASSWORD=<changme>
|
||||
DB_PREFIX=chq_
|
||||
MAIL_DRIVER=smtp
|
||||
MAIL_HOST=<changme>
|
||||
MAIL_PORT=587
|
||||
MAIL_USERNAME=noreply
|
||||
MAIL_PASSWORD=<changme>
|
||||
MAIL_ADDRESS=<changme>
|
||||
MAIL_NAME=<changme>
|
||||
MAIL_ENCRYPTION=tls
|
||||
APP_URL=<changme>
|
||||
APP_KEY=<changme> (Check readme for further info)
|
||||
APP_LOG=errorlog
|
||||
APP_ENV=${APP_ENV:-production}
|
||||
APP_DEBUG=false
|
||||
DEBUG=false
|
|
@ -0,0 +1,13 @@
|
|||
# Cachet
|
||||
## Setting the APP_KEY env var
|
||||
When running the compose file for the first time run without the "-d"
|
||||
|
||||
```docker-compose up```
|
||||
|
||||
Look through the output for a line specifying the APP_KEY, format example:
|
||||
|
||||
```APP_KEY=base64:ok6fhe+j50Weid9teM3Yi6NScsQhNloddE1KQkiy61I=```
|
||||
|
||||
Paste the output into the .env file at the relevant line, replacing the existing line with the above.
|
||||
|
||||
Once completed can now be run as: ```docker-compose up -d```
|
|
@ -2,33 +2,22 @@ version: "3"
|
|||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:9.5
|
||||
image: postgres:latest
|
||||
volumes:
|
||||
- /var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=<replace>
|
||||
- data:/var/lib/postgresql/data
|
||||
env_file: .env.db
|
||||
restart: unless-stopped
|
||||
|
||||
cachet:
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
- cachet_ver=2.4
|
||||
image: cachethq/docker:latest
|
||||
ports:
|
||||
- 8089:8000
|
||||
- ${PORT}:8000
|
||||
links:
|
||||
- postgres:postgres
|
||||
environment:
|
||||
- DB_DRIVER=pgsql
|
||||
- DB_HOST=postgres
|
||||
- DB_PORT=5432
|
||||
- DB_DATABASE=postgres
|
||||
- DB_USERNAME=postgres
|
||||
- DB_PASSWORD=<replace>
|
||||
- DB_PREFIX=chq_
|
||||
- APP_LOG=errorlog
|
||||
- DEBUG=false
|
||||
- APP_KEY=base64:rZiYDNF77ZsLseB+DtPvNYBbipg7HwQej3f92eeUiLo=
|
||||
env_file: .env
|
||||
depends_on:
|
||||
- postgres
|
||||
restart: on-failure
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
data:
|
||||
|
|
Loading…
Reference in New Issue