diff --git a/compose.yaml b/compose.yaml index 386c4a3..68d1912 100644 --- a/compose.yaml +++ b/compose.yaml @@ -17,7 +17,7 @@ services: bot-api: image: oven/bun:1 container_name: bot-api - command: bun run dev + command: bun run docker-dev working_dir: /usr/src/app ports: - "8080:8080" diff --git a/package.json b/package.json index 66c9443..acb29be 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,9 @@ }, "scripts": { "start": "bun run src/index.ts", - "dev": "bun --hot run src/index.ts", - "test": "bun test" + "docker-dev": "bun --hot run src/index.ts", + "dev": "docker compose down -v && docker compose up", + "test": "docker compose down -v && docker compose run bot-api bun test" }, "dependencies": { "@types/express": "^4.17.21",