Update uid of postgres user

Refs #46
This commit is contained in:
Stefan Verhoeven 2018-07-16 17:28:30 +02:00
parent a1f1ceaf86
commit fcb1b89c98

View File

@ -70,9 +70,9 @@ docker create --name cartodb_pgdata sverhoeven/cartodb
# Change to directory to save the Postgresql data dir (cartodb_pgdata) of the CartoDB image
docker cp cartodb_pgdata:/var/lib/postgresql $PWD/cartodb_pgdata
docker rm -f cartodb_pgdata
# Inside container cartodb_pgdata is owned by postgres (uid=105) user,
# Inside container cartodb_pgdata is owned by postgres (uid=103) user,
# it should be owned by same user on the local filesystem
sudo chown -R 105.105 $PWD/cartodb_pgdata
sudo chown -R 103.103 $PWD/cartodb_pgdata
```
After this the CartoDB container will have a database that stays filled after restarts.