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