forked from
tangled.org/knot-docker
Community maintained Docker config for the spindle server
1services:
2 knot:
3 build:
4 context: .
5 args:
6 UID: 1000
7 GID: 1000
8 environment:
9 KNOT_SERVER_HOSTNAME: ${KNOT_SERVER_HOSTNAME}
10 KNOT_SERVER_OWNER: ${KNOT_SERVER_OWNER}
11 KNOT_SERVER_DB_PATH: /app/knotserver.db
12 KNOT_REPO_SCAN_PATH: /home/git/repositories
13 KNOT_SERVER_INTERNAL_LISTEN_ADDR: localhost:5444
14 volumes:
15 - ./keys:/etc/ssh/keys
16 - ./repositories:/home/git/repositories
17 - ./server:/app
18 ports:
19 - "5555:5555"
20 - "2222:22"
21 restart: always
22 frontend:
23 image: caddy:alpine
24 command: >
25 caddy
26 reverse-proxy
27 --from ${KNOT_SERVER_HOSTNAME}
28 --to knot:5555
29 depends_on:
30 - knot
31 ports:
32 - ${KNOT_SERVER_PORT:-443}:443
33 - ${KNOT_SERVER_PORT:-443}:443/udp
34 volumes:
35 - caddy_data:/data
36 restart: always
37 profiles: ["caddy"]