We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7c920 commit 7b3b77eCopy full SHA for 7b3b77e
service/docker-compose.yml
@@ -17,11 +17,11 @@ services:
17
# If things really need to be wiped, uncomment the destructive entrypoint below.
18
# This will remove all old data in the database, and rebuild it from scratch.
19
entrypoint: [ "bash", "-c", "\
20
- if [ ! -f /var/lib/postgresql/data/PG_VERSION ]; then \
21
- echo 'Database seems uninitialized. WIPING AND REBUILDING...'; \
+ echo 'DESTROYING AND RESETTING DATABASE...'; \
22
rm -rf /var/lib/postgresql/data/*; \
23
- fi; \
24
- exec docker-entrypoint.sh postgres " ]
+ chown -R postgres:postgres /var/lib/postgresql/data; \
+ exec docker-entrypoint.sh postgres \
+ " ]
25
healthcheck:
26
test: ["CMD-SHELL", "pg_isready -U postgres"]
27
interval: 30s
0 commit comments