Skip to content

Commit

Permalink
build: persist dev DB data (#283)
Browse files Browse the repository at this point in the history
Persist the development DB in a Docker volume, so that it isn't lost when you shut down a local container.
  • Loading branch information
eatyourgreens authored Nov 15, 2024
1 parent 6f5bbb5 commit f95a376
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ services:
POSTGRES_USER: postgres
ports:
- "5432:5432"
volumes:
- dev-data:/var/lib/postgresql/data

gutenberg:
image: gutenberg
Expand All @@ -34,4 +36,6 @@ services:
db:
condition: service_started
environment:
DATABASE_URL: postgresql://postgres:super-secret-password@db:5432
DATABASE_URL: postgresql://postgres:super-secret-password@db:5432
volumes:
dev-data:

0 comments on commit f95a376

Please sign in to comment.