Skip to content

Commit

Permalink
Readme for localhost deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Apr 15, 2024
1 parent 1196e5f commit 7ebb0e0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions deployment/docker-compose/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Docker Compose

## Run it on localhost

Notifo needs https. This is a little bit tricky on localhost.

### 1. Configure Caddy

Caddy is used as a reverse proxy and also creates the certificates. Usually lets-encrypt is used for that, but for localhost we need to switch to a local certificate authority.

Therefore you have to comment out the following line in `docker-compose.yml`:

```yml
# - SITE_SETTINGS="tls internal"
```

### Step 2 Download the root certificate

Caddy usually installs the root certificate, but this is not available on docker. Therefore we have to install the root certificate manually. First download the certificate from the docker container:

docker cp docker-compose-notifo_proxy-1:/data/caddy/pki/authorities/local/root.crt .

Next install the certificate to the **trusted root authorities store**. You might need to restart chrome after that.
3 changes: 2 additions & 1 deletion deployment/docker-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ services:
restart: unless-stopped

notifo_proxy:
image: squidex/caddy-proxy
image: squidex/caddy-proxy:2.7.6
ports:
- "80:80"
- "443:443"
environment:
- SITE_ADDRESS=${NOTIFO_DOMAIN}
- SITE_SERVER="notifo_notifo:5000"
# - SITE_SETTINGS="tls internal"
volumes:
- /etc/notifo/caddy/data:/data
- /etc/notifo/caddy/config:/config
Expand Down

0 comments on commit 7ebb0e0

Please sign in to comment.