lasthourcloud/templates/compose/docuseal-with-postgres.yaml

37 lines
1.2 KiB
YAML
Raw Normal View History

# documentation: https://www.docuseal.co/
# slogan: Document Signing for Everyone free forever for individuals, extensible for businesses and developers. Open Source Alternative to DocuSign, PandaDoc and more.
# tags: documentation
# logo: svgs/docuseal.png
2024-05-23 09:13:06 +00:00
# port: 3000
services:
docuseal:
2024-05-15 20:54:46 +00:00
image: docuseal/docuseal:latest
environment:
2024-05-23 09:13:06 +00:00
- SERVICE_FQDN_DOCUSEAL_3000
2024-05-15 20:54:46 +00:00
- HOST=${SERVICE_FQDN_DOCUSEAL}
- DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql:5432/${POSTGRES_DB}
volumes:
2024-05-15 20:54:46 +00:00
- docuseal-data:/data
depends_on:
postgresql:
condition: service_healthy
healthcheck:
2024-05-23 09:13:06 +00:00
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000"]
interval: 5s
timeout: 20s
retries: 10
postgresql:
2024-05-15 20:54:46 +00:00
image: postgres:16-alpine
volumes:
2024-05-15 20:54:46 +00:00
- postgresql-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
2024-05-15 20:54:46 +00:00
- POSTGRES_DB=${POSTGRES_DB:-docuseal}
healthcheck:
2024-05-15 20:54:46 +00:00
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 20s
2024-05-23 09:13:06 +00:00
retries: 10