diff --git a/deployment/docker-compose/README.md b/deployment/docker-compose/README.md new file mode 100644 index 00000000..e037c944 --- /dev/null +++ b/deployment/docker-compose/README.md @@ -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. \ No newline at end of file diff --git a/deployment/docker-compose/docker-compose.yml b/deployment/docker-compose/docker-compose.yml index a3a9b91d..6898c9fb 100644 --- a/deployment/docker-compose/docker-compose.yml +++ b/deployment/docker-compose/docker-compose.yml @@ -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