Skip to content

Commit d6099d1

Browse files
add compose troubleshooting (#1355)
@nikoshell Thank you for the help with my Docker issues! I found these troubleshooting steps to help resolve the issue, does it make sense to share these here? What do you think?
1 parent b1360e7 commit d6099d1

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/preview.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Preview
22

33
on:
44
pull_request:
5+
paths-ignore: # skip building preview if changes are limited to following paths
6+
- "README.md"
57

68
jobs:
79
preview:

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)