Skip to content

Commit

Permalink
Merge pull request #63 from crux-bphc/fix-db-volume-persistence
Browse files Browse the repository at this point in the history
Create volumes for db persistence
  • Loading branch information
pnicto authored Jul 31, 2023
2 parents 9194698 + 59a5ca8 commit a7cb84f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ services:
interval: 10s
timeout: 30s
retries: 3
volumes:
- ./data:/var/lib/postgresql/data
profiles:
- "dev"
- "prod"
Expand All @@ -23,6 +25,8 @@ services:
- .env.testing
ports:
- "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-d", "${POSTGRES_DB}"]
interval: 10s
Expand Down

0 comments on commit a7cb84f

Please sign in to comment.