Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
bump to postgres 13 in docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
blankdots committed Jan 3, 2022
1 parent 12c9bcb commit 42e257d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Documentation: https://beacon-python.readthedocs.io

`beacon-python` Web Server requires:
* Python 3.8+;
* running DB [PostgreSQL Server](https://www.postgresql.org/) 9.6+ (recommended 11.6).
* running DB [PostgreSQL Server](https://www.postgresql.org/) 9.6+ (recommended 13).

```shell
git clone https://github.com/CSCfi/beacon-python
Expand All @@ -30,7 +30,7 @@ docker run -e POSTGRES_USER=beacon \
-e POSTGRES_PASSWORD=beacon \
-v "$PWD/data":/docker-entrypoint-initdb.d \
-e POSTGRES_DB=beacondb \
-p 5432:5432 postgres:11.6
-p 5432:5432 postgres:13
```

#### Run beacon-python
Expand Down
4 changes: 2 additions & 2 deletions deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.2'
services:
postgres:
hostname: postgres
image: postgres:11.6
image: postgres:13
environment:
POSTGRES_USER: beacon
POSTGRES_DB: beacondb
Expand All @@ -20,7 +20,7 @@ services:
environment:
DATABASE_URL: postgres
links:
- postgres:postgres
- postgres:postgres
ports:
- 5050:5050
restart: on-failure
4 changes: 2 additions & 2 deletions deploy/test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.2'
services:
postgres:
hostname: postgres
image: postgres:11.6
image: postgres:13
environment:
POSTGRES_USER: beacon
POSTGRES_DB: beacondb
Expand Down Expand Up @@ -42,4 +42,4 @@ services:
- 8000:8000
volumes:
- ./mock_auth.py:/mock_auth.py
entrypoint: ["python", "/mock_auth.py", "0.0.0.0", "8000"]
entrypoint: [ "python", "/mock_auth.py", "0.0.0.0", "8000" ]
2 changes: 1 addition & 1 deletion docs/db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Database
========

We use a PostgreSQL database (recommended version 11.6) for working with beacon data.
We use a PostgreSQL database (recommended version 13) for working with beacon data.
For more information on setting up the database consult :ref:`database-setup`.

.. attention:: We recommend https://pgtune.leopard.in.ua/ for establishing PostgreSQL
Expand Down
4 changes: 2 additions & 2 deletions docs/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Instructions
.. note:: In order to run ``beacon-python`` Web Server requirements are as specified below:

* Python 3.8+;
* running DB `PostgreSQL Server <https://www.postgresql.org/>`_ 9.6+ (recommended 11.6).
* running DB `PostgreSQL Server <https://www.postgresql.org/>`_ 9.6+ (recommended 13).

.. _env-setup:

Expand Down Expand Up @@ -165,7 +165,7 @@ Starting PostgreSQL using Docker:
-e POSTGRES_PASSWORD=beacon \
-e POSTGRES_DB=beacondb \
-v "$PWD/data":/docker-entrypoint-initdb.d \
-p 5432:5432 postgres:11.6
-p 5432:5432 postgres:13
.. hint:: If one has their own database the ``beacon_init`` utility can be skipped,
and make use of their own database by:
Expand Down

0 comments on commit 42e257d

Please sign in to comment.