services: knot: build: context: . args: UID: 2897 GID: 2897 environment: KNOT_SERVER_HOSTNAME: "knot.hackclub.community KNOT_SERVER_OWNER: "did:plc:i5m7ags2eqs5zras4cg2xkll" KNOT_SERVER_DB_PATH: /app/knotserver.db KNOT_REPO_SCAN_PATH: /home/git/repositories KNOT_SERVER_INTERNAL_LISTEN_ADDR: localhost:5444 volumes: - ./keys:/etc/ssh/keys - ./repositories:/home/git/repositories - ./server:/app ports: - "44289:5555" - "33939:22" 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"]