Skip to content

Commit

Permalink
Updated Postgres container to match what bakerydemo uses when running…
Browse files Browse the repository at this point in the history
… separately

Added a make target to remove the pg data volume; this will make it easier for people to upgrade PG
  • Loading branch information
cnk committed Aug 28, 2024
1 parent 0182ebd commit 2eda99c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ ssh-wagtail: ## Enter the running Docker container for the wagtail development e
ssh-db: ## Open a PostgreSQL shell session
docker compose exec web python manage.py dbshell

destroy-db: ## Remove the volume containing the PostgreSQL data
docker volume rm docker-wagtail-develop_postgres-data

down: ## Stop and remove all Docker containers
docker compose down

Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
version: '3'

volumes:
postgres-data:
node_modules:

services:
web:
container_name: "web"
Expand All @@ -23,9 +21,10 @@ services:
depends_on:
- db
- frontend

db:
container_name: "db"
image: postgres:12.3-alpine
image: postgres:14.1
environment:
POSTGRES_USER: wagtail
POSTGRES_DB: wagtail
Expand All @@ -35,6 +34,7 @@ services:
restart: "no"
expose:
- "5432"

frontend:
container_name: "frontend"
build:
Expand Down

0 comments on commit 2eda99c

Please sign in to comment.