# add to support signing of wacz files

version: "3.8"

services:
  authsign:
    image: webrecorder/authsign:${AUTHSIGN_TAG:-latest}

    volumes:
      - btrix-sign-data:/data
      - ./configs/signing.yaml:/app-config/signing.yaml:z

    environment:
      - CONFIG=/app-config/signing.yaml

      # optional token for authenticating access to authsign
      - AUTH_TOKEN=${WACZ_SIGN_TOKEN}

    env_file:
      - ./configs/config.env

    # port 80 must be open to automatically generate cert via LetsEncrypt
    # or set AUTHSIGN_PORT to use different port
    ports:
      - "${AUTHSIGN_PORT:-80}:80"

  backend:
    environment:
      - WACZ_SIGN_URL=${WACZ_SIGN_URL}

      # optional token for authenticating access to authsign
      - WACZ_SIGN_TOKEN=${WACZ_SIGN_TOKEN}

volumes:
  btrix-sign-data:


