From e514e13de3ca92338cab36796a03725ce6a692c2 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 2 Nov 2025 14:43:05 +0100 Subject: [PATCH] =?UTF-8?q?core-control/docker-compose.yml=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core-control/docker-compose.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 core-control/docker-compose.yml diff --git a/core-control/docker-compose.yml b/core-control/docker-compose.yml new file mode 100644 index 0000000..f6a8aa9 --- /dev/null +++ b/core-control/docker-compose.yml @@ -0,0 +1,34 @@ +services: + web: + image: haedlessdev/corecontrol:latest + ports: + - "3300:3000" + environment: + JWT_SECRET: RANDOM_SECRET # Replace with a secure random string + DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres" + + agent: + image: haedlessdev/corecontrol-agent:latest + environment: + DATABASE_URL: "postgresql://postgres:postgres@db:5432/postgres" + depends_on: + db: + condition: service_healthy + + db: + image: postgres:17 + restart: always + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: postgres + volumes: + - postgres_data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 2s + timeout: 2s + retries: 10 + +volumes: + postgres_data: \ No newline at end of file