services: app: depends_on: postgres: condition: service_healthy image: docuseal/docuseal:latest ports: - '${APP_PORT}:3000' environment: DATABASE_URL: postgresql://postgres:postgres@postgres:5432/docuseal ROOT_DIR: ${ROOT_DIR} volumes: - ${ROOT_DIR}/app_data:/data/docuseal postgres: image: postgres:15 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: - ${ROOT_DIR}/pg_data:/var/lib/postgresql/data