We use Postgres 11.2 and Alpine 3.9.
Security is hardened:
There are 2 users (lega_in and lega_out), and 2 schemas
(local_ega and local_ega_download). A special one is included for
EBI to access the data through local_ega_ebi.
The following environment variables can be used to configure the database:
| Variable | Description | Default value |
|---|---|---|
| PGVOLUME | Mountpoint for the writble volume | /var/lib/postgresql |
| DB_LEGA_IN_PASSWORD | lega_in's password | - |
| DB_LEGA_OUT_PASSWORD | lega_out's password | - |
| TZ | Timezone for the Postgres server | Europe/stockholm |
| Variable | Description | Default value |
|---|---|---|
| PG_SERVER_CERT | Public Certificate in PEM format | $PGVOLUME/pg.cert |
| PG_SERVER_KEY | Private Key in PEM format | $PGVOLUME/pg.key |
| PG_CA | Public CA Certificate in PEM format | $PGVOLUME/CA.cert |
| PG_VERIFY_PEER | Enforce client verification | 0 |
| SSL_SUBJ | Subject for the self-signed certificate creation | /C=SE/ST=Sweden/L=Uppsala/O=NBIS/OU=SysDevs/CN=LocalEGA |
If not already injected, the files located at PG_SERVER_CERT and PG_SERVER_KEY will be generated, as a self-signed public/private certificate pair, using SSL_SUBJ.
Client verification is enforced if and only if PG_CA exists and PG_VERIFY_PEER is set to 1.
Content type
Image
Digest
sha256:ec09891c1…
Size
83.8 MB
Last updated
over 3 years ago
docker pull neicnordic/sda-db