Skip to content

Commit d949269

Browse files
authored
Merge pull request #134 from Pzixel/master
Add windows support
2 parents 7a62895 + 660dd50 commit d949269

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Start PostgreSQL using:
7777
```bash
7878
docker run --name postgresql -itd --restart always \
7979
--publish 5432:5432 \
80-
--volume /srv/docker/postgresql:/var/lib/postgresql \
80+
--volume postgresql:/var/lib/postgresql \
8181
sameersbn/postgresql:10-2
8282
```
8383

@@ -91,7 +91,7 @@ docker exec -it postgresql sudo -u postgres psql
9191

9292
## Persistence
9393

94-
For PostgreSQL to preserve its state across container shutdown and startup you should mount a volume at `/var/lib/postgresql`.
94+
For PostgreSQL to preserve its state across container shutdown and startup you should mount a volume at `/var/lib/postgresql`. If you don't like the default volume destination then you can change it
9595

9696
> *The [Quickstart](#quickstart) command already mounts a volume for persistence.*
9797

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ PostgreSQL:
1818
- REPLICATION_PASS=
1919
- REPLICATION_SSLMODE=
2020
volumes:
21-
- /srv/docker/postgresql:/var/lib/postgresql
21+
- postgresql:/var/lib/postgresql

0 commit comments

Comments
 (0)