commit e2e46d35ebd6fb7bd04e042ce57298283131046b Author: stephane.david Date: Wed Apr 30 14:17:29 2025 +0200 First version 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