The supplied docker-compose.yml file supports running a postgres container with an arbitrary
UID (default is alpine's default of 70). If you do so please see the section on arbitrary --user Notes for postgres' offical docker image.
This assumes you are using the supplied docker-compose.yml file.
If your import is overwriting the default database (usually ttrss), which is opened on postgres startup, you need to add an extra \connect postgres statement into your .sql file.
\connect postgres
[...]
DROP database ttrss
If you don't, postgres cannot drop and recreate the open database it is currently using and your import will fail.
Steps for importing data:
docker-compose downvolumes:
[...]
- <path-to-your-import-file>:/tmp/import
docker-compose up -d postgresdocker-compose run postgres /bin/shpsql -h postgres -U ttrss -f <path-to-your-import-file>docker-compose downYou should then be able to bring everything back up with a standard docker-compose up -d. ttrss might prompt you for a schema upgrade if you are importing from an older version after login.
Content type
Image
Digest
Size
46.1 MB
Last updated
over 8 years ago
docker pull azmo/ttrss