From e2e46d35ebd6fb7bd04e042ce57298283131046b Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Wed, 30 Apr 2025 14:17:29 +0200 Subject: [PATCH] First version --- docker-compose.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f646802 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +services: + kostos: + image: ghcr.io/shynewt/kostos:latest + container_name: Kostos + security_opt: + - no-new-privileges:true + healthcheck: + test: ["CMD-SHELL", "nc -z 127.0.0.1 3000 || exit 1"] + interval: 10s + timeout: 5s + retries: 3 + start_period: 90s + restart: always + ports: + - 3325:3000 + volumes: + - /var/lib/docker/volumes/kostos/kostos.db:/app/kostos.db:rw + command: sh -c "npm run db:migrate && npm start" + environment: + NODE_ENV: production \ No newline at end of file