services: knot: # Official image. The digest is the one tangled.org's own atproto repo names # in its io.atcr.tag record knot_2. Pulling requires `docker login atcr.io`. image: atcr.io/tangled.org/knot@sha256:c15d3725a1483f3973720f3e305467928741fe3731ce6f488974286d18b3d75c labels: shuttle.spike: "green" environment: KNOT_HOSTNAME: knot.example.org KNOT_ADMINS: did:plc:tdw3iqyznnma3t2ylthfpyd5 KNOT_PLC_DIRECTORY: https://plc.directory KNOT_GIT_OBJECT_FORMAT: sha1 KNOT_SSH_HOST_KEY_FILE: /data/state/ssh_host_ed25519_key KNOT_SCAN_PATH: /data/repos KNOT_LFS_STORE_PATH: /data/lfs KNOT_SEALED_KEY_FILE: /data/state/sealed-keys.json KNOT_MASTER_KEY_ENV: KNOT_MASTER_KEY # Development key from the environment. It must stay the same across # runs: the persistent volume's sealed keys are encrypted with it. KNOT_MASTER_KEY: ${KNOT_MASTER_KEY:?set KNOT_MASTER_KEY in the environment} ports: - "127.0.0.1:2222:2222" - "127.0.0.1:5555:5555" volumes: - knot-data:/data # receive-pack spools incoming packet lines to /tmp. tmpfs: - /tmp:mode=1777,uid=1000,gid=1000 networks: - default shuttle: build: context: . dockerfile: Dockerfile labels: shuttle.spike: "green" # Development only: the e2e harness sets these to the invoking account so # its persistent OAuth database bind mount remains writable. The production # compose file uses the image's fixed 10001:10001 identity. user: "${SHUTTLE_UID:-10001}:${SHUTTLE_GID:-10001}" working_dir: /tmp environment: SHUTTLE_DB: /config/shuttle.db SHUTTLE_KNOT_URL_KNOT_EXAMPLE_ORG: http://knot:5555 SHUTTLE_BLOB_LIMIT: ${SHUTTLE_BLOB_LIMIT:-} SHUTTLE_ARTIFACT_MAX: ${SHUTTLE_ARTIFACT_MAX:-} volumes: - ${SHUTTLE_DB_DIR:?set SHUTTLE_DB_DIR}:/config ports: - "127.0.0.1:8080:8080" depends_on: - knot networks: - default runner: image: gitlab/gitlab-runner@sha256:4411906ada6b40b2ca259a72549a0c83883649d7b1e4c634d4d0dadf41b00785 labels: shuttle.spike: "green" volumes: - /var/run/docker.sock:/var/run/docker.sock - runner-config:/etc/gitlab-runner - runner-home:/home/gitlab-runner depends_on: - shuttle networks: - default networks: default: labels: shuttle.spike: "green" volumes: knot-data: external: true name: shuttle_knot-data runner-config: labels: shuttle.spike: "green" runner-home: labels: shuttle.spike: "green"