Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 530 Bytes

File metadata and controls

35 lines (23 loc) · 530 Bytes

Database

To configure:

Copy '.env.prod.example' to '.env.prod' and modify POSTGRES_PASSWORD.

To run:

docker-compose up -d

To access the database:

psql -h IP_ADDRESS -p 5433 -U postgres

To backup the database:

pg_dump -h IP_ADDRESS -p 5433 -U postgres -d postgres > backup.sql

To restore the database:

psql -h IP_ADDRESS -p 5433 -U postgres -d postgres < backup.sql

or

pg_restore -h IP_ADDRESS -p 5433 -U postgres -d postgres backup.sql