Skip to content

Commit f7ed24b

Browse files
authored
Merge branch 'master' into patch-1
2 parents a1e5e62 + 42b3caa commit f7ed24b

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM nginx:1.15.12-alpine
1+
FROM nginx:1.17.5-alpine
22

33
EXPOSE 8000
44
CMD ["/sbin/entrypoint.sh"]
@@ -9,7 +9,7 @@ ARG archive_url
99
ENV cachet_ver ${cachet_ver:-2.4}
1010
ENV archive_url ${archive_url:-https://github.com/cachethq/Cachet/archive/${cachet_ver}.tar.gz}
1111

12-
ENV COMPOSER_VERSION 1.6.3
12+
ENV COMPOSER_VERSION 1.9.0
1313

1414
RUN apk add --no-cache --update \
1515
postgresql-client \

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/).

conf/nginx-site.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
server {
22
listen 8000 default; ## Listen for ipv4; this line is default and implied
3+
listen [::]:8000 default; ## Listen for ipv6
34

45
# Make site accessible from http://localhost/
56
server_name localhost;

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ initialize_system() {
104104
CACHE_DRIVER=${CACHE_DRIVER:-apc}
105105

106106
SESSION_DRIVER=${SESSION_DRIVER:-apc}
107-
SESSION_DOMAIN=${SESSION_DOMAIN:-apc}
107+
SESSION_DOMAIN=${SESSION_DOMAIN:-}
108108
SESSION_SECURE_COOKIE=${SESSION_SECURE_COOKIE:-}
109109

110110
QUEUE_DRIVER=${QUEUE_DRIVER:-database}

0 commit comments

Comments
 (0)