Skip to main content

DocuSeal (Docusign Alternative)

https://github.com/docusealco/docuseal

 

services:
  app:
    depends_on:
      postgres:
        condition: service_healthy
    image: docuseal/docuseal:1.8.9.8
    ports:
      - 3000:3000
    volumes:
      - ./docuseal:app:/data/docuseal
    environment:
      - FORCE_SSL=${HOST}
      - DATABASE_URL=postgresql://postgres:postgres@postgres:5432/docuseal

  postgres:
    image: postgres:15
    volumes:
      - './pg_data:/var/lib/postgresql/data'
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: docuseal
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 5s
      timeout: 5s
      retries: 5

volumes:
  app:
#
#  caddy:
#    image: caddy:latest
#    command: caddy reverse-proxy --from $HOST --to app:3000
#    ports:
#      - 80:80
#      - 443:443
#      - 443:443/udp
#    volumes:
#      - .:/data
#    environment:
#      - HOST=${HOST}

Beispiel für API-Call zum Unterschreiben

curl --location 'https://sign.DEINEDOMAIN.de/api/submissions' \
       --header 'X-Auth-Token: zFTAbKT36yB...............g3E2af' \
       --data-raw '{
         "template_id": 2,
         "submitters": [
           {
             "name": "Eike Fo",
             "role": "Erste Partei",
             "email": "MAIL@ADRESSE.DE",
             "values": {
               "Name AusstellerIn": "Eike Test"
             }
           },
           { "role": "Second Submitter", "email": "MAIL@ADRESSE.DE" }
         ]
       }'