From ead316df0036846561ad4f12928a5bcfb5aa1e6a Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Thu, 6 Jul 2023 22:37:59 +0300 Subject: [PATCH] add docker compose --- docker-compose.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..bfcebedb --- /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: 'true' + DATABASE_URL: postgresql://postgres:postgres@postgres:5432/docuseal + + postgres: + image: postgres:latest + 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}