coolify_knotserver_compose.yaml
edited
1# I have no clue what "init: false", "PUID=1000", or "PGID=1000" do, if anything,
2# but Gemini told me to add them, and then my Knotserver started working, so I kept them
3
4services:
5 knot:
6 # I built my own image and pushed it to the Docker Registry just so
7 # my VPS didn't have to build the image, and so I didn't have to enable Git source
8 image: 'indexxdev/knotserver:1.0'
9 init: false
10 environment:
11 - PUID=1000
12 - PGID=1000
13 - 'KNOT_SERVER_HOSTNAME=${KNOT_SERVER_HOSTNAME}'
14 - 'KNOT_SERVER_OWNER=${KNOT_SERVER_OWNER}'
15 - KNOT_SERVER_DB_PATH=/app/knotserver.db
16 - KNOT_REPO_SCAN_PATH=/home/git/repositories
17 - 'KNOT_SERVER_INTERNAL_LISTEN_ADDR=localhost:5444'
18 volumes:
19 - './keys:/etc/ssh/keys'
20 - './repositories:/home/git/repositories'
21 - './server:/app'
22 ports:
23 - '2222:22'
24 restart: always