Skip to content

Commit

Permalink
added docker-compose steps for postgresql
Browse files Browse the repository at this point in the history
Signed-off-by: Nischay Mamidi <[email protected]>
  • Loading branch information
Nischay-Pro committed Jul 3, 2023
1 parent 674a3c3 commit 0b47457
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions documentation/host/data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ Alternatively, you can use Docker Compose to run a postgres database. Use can us
- ./postgres-data:/var/lib/postgresql/data
network_mode: host
To run this, simply type ``docker-compose up`` in the directory where you saved the ``docker-compose.yml`` file. Pass the ``-d`` flag to run it in the background.

This will create a postgres database in a directory ``postgres-data`` in your current working directory. You can change the password and database name to your liking. You can also change the port mapping to e.g. ``5433:5432`` if you already have a postgres database running on your host machine.


Expand All @@ -98,6 +100,8 @@ Then restart the postgres server.
$ sudo service postgresql restart
.. note:: If you are using Docker to run postgres, the ``timezone`` setting is already set to ``UTC`` by default.


Create "flexmeasures" and "flexmeasures_test" databases and users
^^^^^^^^^^^^^
Expand Down

0 comments on commit 0b47457

Please sign in to comment.