Skip to content

Commit 42b3caa

Browse files
authored
Merge pull request #323 from nickshears/master
Updated the README to make the APP_KEY instructions clearer
2 parents 8912518 + 7ef9e77 commit 42b3caa

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Cachet is a BSD-3-licensed open source project. If you'd like to support future
2020

2121
2. Edit the docker-compose.yml file to specify your [ENV variables](/conf/.env.docker).
2222

23-
__Note:__ You must specify a unique `APP_KEY` including `base64:` prefix generated by `php artisan key:generate` within the container.
2423

2524
3. To build an image containing a specific Cachet release, set the [`cachet_ver` ARG in the docker-compose.yml](/docker-compose.yml)
2625

@@ -37,6 +36,20 @@ __Note:__ You must specify a unique `APP_KEY` including `base64:` prefix generat
3736

3837
5. `cachethq/docker` runs on port 8000 by default. This is exposed on host port 80 when using docker-compose.
3938

39+
40+
6. Setup the APP_KEY
41+
42+
Whilst the container is up and running, find the name of the Cachet container via `docker ps`.
43+
44+
Run `docker exec -i ID_OF_THE_CONTAINER php artisan key:generate`.
45+
46+
Replace `${APP_KEY:-null}` in `docker-compose.yml` with the newly generated Application key.
47+
48+
__Note:__ make sure you include `base64:` prefix. E.g. `base64:YOUR_UNIQUE_KEY`
49+
50+
Restart the Docker containers.
51+
52+
4053
# Docker Hub Automated build
4154

4255
`cachethq/docker` is available as a [Docker Hub Trusted Build](https://hub.docker.com/r/cachethq/docker/).

0 commit comments

Comments
 (0)