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.
2 parents b28c0fc + b0fad7c commit 553f0a1Copy full SHA for 553f0a1
README.md
@@ -13,6 +13,7 @@
13
```
14
3. Run the following command to start the application:
15
```bash
16
+ docker create volume postgres-data # (optional) run this command if you face any mount volume / volume not exist error
17
docker-compose up
18
19
docker-compose.yml
@@ -27,9 +27,12 @@ services:
27
ports:
28
- 5432:5432
29
volumes:
30
- - ./postgres-data:/var/lib/postgresql/data
+ - postgres-data:/var/lib/postgresql/data
31
healthcheck:
32
test: [ 'CMD-SHELL', 'pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}' ]
33
interval: 10s
34
timeout: 5s
35
retries: 5
36
+
37
+volumes:
38
+ postgres-data:
0 commit comments