Something went wrong. Try again.
Community maintained Docker config for the knot server forked from psychedeli.ca/knot-docker
Something went wrong. Try again.
knot-docker docker-compose.knot2.yml
1.1 kB · 34 lines
YAML
at main
1234567891011121314151617181920212223242526272829303132333435services: knot: image: atcr.io/tangled.org/knot:2 environment: KNOT_HOSTNAME: "${KNOT_SERVER_HOSTNAME:?the hostname that this knot serves, matching its did:web}" KNOT_ADMINS: "${KNOT_SERVER_OWNER:?the did of the account that administers this knot}" KNOT_MASTER_KEY: "${KNOT_MASTER_KEY:?the base64 master key that seals the knot's own signing identity}" KNOT_PLC_DIRECTORY: "${KNOT_SERVER_PLC_URL:-https://plc.directory}" KNOT_GIT_OBJECT_FORMAT: "${KNOT_OBJECT_FORMAT:-sha1}" KNOT_LISTEN_ADDR: "${KNOT_LISTEN_ADDR:-[::]:5555}" KNOT_SSH_LISTEN_ADDR: "${KNOT_SSH_LISTEN_ADDR:-[::]:2222}" volumes: - ./knot2:/data ports: - "5555:5555" - "2222:2222" stop_grace_period: 90s restart: always frontend: image: caddy:alpine command: > caddy reverse-proxy --from ${KNOT_SERVER_HOSTNAME} --to knot:5555 depends_on: - knot ports: - ${KNOT_SERVER_PORT:-443}:443 - ${KNOT_SERVER_PORT:-443}:443/udp volumes: - ./caddy_data:/data restart: always profiles: ["caddy"]