commit 17e6f67c612c4e53c42c37a389e3cfcd7e8447d5 Author: Glenn Date: Mon Jan 15 18:49:08 2024 +0100 Initial import diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..780c1ed --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM docuseal/docuseal:1.3.7 + + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2fd8028 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,41 @@ +version: '3' + +services: + app: + depends_on: + postgres: + condition: service_healthy + image: docuseal/docuseal:latest + ports: + - 3000:3000 + volumes: + - .:/data + 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 + + 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}