Skip to content

Commit f15819e

Browse files
committed
add compose troubleshooting
1 parent b1360e7 commit f15819e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,25 @@ $ docker compose up
3939

4040
The website will be available at `http://localhost:4321`.
4141

42+
#### Docker Troubleshooting
43+
44+
Docker Compose mounts volumes from your file system to enable live reload. If
45+
you're having problems starting the container, try this:
46+
47+
```
48+
# Clean everything
49+
docker compose down -v # Remove volumes
50+
docker image rmi website-web # Clean unused images
51+
docker rm website-web # Clean unused containers
52+
53+
# Remove local pnpm store if it exists
54+
rm -rf .pnpm-store
55+
56+
# Rebuild from scratch
57+
docker compose build --no-cache
58+
docker compose up
59+
```
60+
4261
## Content Structure 🗂️
4362

4463
The content of the site is store in this repository. We are using Astro's

0 commit comments

Comments
 (0)