Bind mount (./data:/app/data) was relative to the working directory, so data was lost whenever the project was re-cloned or compose was run from a different path. A named volume is managed by Docker and persists across container rebuilds and image pulls. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
229 B
YAML
13 lines
229 B
YAML
services:
|
|
spelling:
|
|
image: ghcr.io/nmemmert/spelling:latest
|
|
container_name: spelling-v2
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- spelling-data:/app/data
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
spelling-data:
|