Skip to content

Commit 4d88c79

Browse files
authored
fix: extended docker-compose.yml to addres Bug elk-zone#1696 (elk-zone#1701)
1 parent b7ebf31 commit 4d88c79

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,21 @@ The Elk team maintains a deployment at:
3737
- 🦌 Production: [elk.zone](https://elk.zone)
3838
- 🐙 Canary: [main.elk.zone](https://main.elk.zone) (deploys on every commit to `main` branch)
3939

40+
### Self-Host Docker Deployment
41+
42+
In order to host Elk yourself you can use the provided Dockerfile to build a container with elk. Be aware, that Elk only loads properly of the connection is done via SSL/TLS. The Docker container itself does not provide any SSL/TLS handling. You'll have to add this bit yourself.
43+
One could put Elk behind popular reverse proxies with SSL Handling like Traefik, NGINX etc.
44+
45+
1. checkout source ```git clone https://github.com/elk-zone/elk.git```
46+
1. got into new source dir: ```cd elk```
47+
1. build Docker image: ```docker build .```
48+
1. create local storage directory for settings: ```mkdir elk-storage```
49+
1. adjust permissions of storage dir: ```sudo chown 911:911 ./elk-storage```
50+
1. start container: ```docker-compose up -d```
51+
52+
Note: The provided Dockerfile creates a container which will eventually run Elk as non-root user and create a persistent named Docker volume upon first start (if that volume does not yet exist). This volume is always created with root permission. Failing to change the permissions of ```/elk/data``` inside this volume to UID:GID 911 (as specified for Elk in the Dockerfile) will prevent Elk from storing it's config for user accounts. You either have to fix the permission in the created named volume, or mount a directory with the correct permission to ```/elk/data``` into the container.
53+
54+
4055
### Ecosystem
4156

4257
These are known deployments using Elk as an alternative Web client for Mastodon servers or as a base for other projects in the fediverse:

docker-compose.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ services:
33
build:
44
context: .
55
dockerfile: Dockerfile
6+
volumes:
7+
# make sure this directory has the same ownership as the elk user from the Dockerfile
8+
# otherwise Elk will not be able to store configs for accounts
9+
# e.q. mkdir ./elk-storage; sudo chown 911:911 ./elk-storage
10+
- './elk-storage:/elk/data'
611
ports:
712
- 5314:5314

0 commit comments

Comments
 (0)