Skip to content

Commit fd41d90

Browse files
committed
feat: adding docker script
1 parent d62fb94 commit fd41d90

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ REDIS_URL="redis://redis:6379"
2929
Next, spin up docker containers:
3030

3131
```bash
32-
docker compose up -d
32+
bun docker
3333
```
3434

3535
You should have a server running on `http://localhost:<port>` where the port is set in your `.env` file (default is 3000). You can test the following routes:

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"scripts": {
1111
"dev": "bun run --watch .",
1212
"format": "prettier . --write",
13-
"start": "bun ."
13+
"start": "bun .",
14+
"docker": "docker compose down && bun docker:prune && docker compose up -d",
15+
"docker:prune": "docker image prune -a -f && docker volume prune -a -f && docker builder prune -a -f"
1416
},
1517
"dependencies": {
1618
"dotenv": "^16.4.7",

0 commit comments

Comments
 (0)