From 4dbb0b47c48757bcdbc85c33b1a809c194dd04a1 Mon Sep 17 00:00:00 2001 From: jason Date: Sun, 8 Mar 2026 22:42:53 -0500 Subject: [PATCH] Add docker-compose configuration --- docker-compose.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3e4e839 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3.8' + +services: + breedr: + build: . + container_name: breedr + ports: + - "3000:3000" + volumes: + - ./data:/app/data + - ./uploads:/app/uploads + environment: + - NODE_ENV=production + - PORT=3000 + - DB_PATH=/app/data/breedr.db + - UPLOAD_PATH=/app/uploads + restart: unless-stopped + healthcheck: + test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 40s \ No newline at end of file