Skip to content
Snippets Groups Projects
Commit 5411858e authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

use newer version of postgres and fix permissions

parent 13eea3fb
Branches
Tags
No related merge requests found
...@@ -2,7 +2,8 @@ version: '3.1' ...@@ -2,7 +2,8 @@ version: '3.1'
services: services:
postgres: postgres:
image: postgres:12 image: postgres:15
user: "1000:1000"
environment: environment:
POSTGRES_DB: compendium POSTGRES_DB: compendium
POSTGRES_USER: compendium POSTGRES_USER: compendium
...@@ -12,4 +13,6 @@ services: ...@@ -12,4 +13,6 @@ services:
ports: ports:
- "65000:5432" - "65000:5432"
volumes: volumes:
- ./build/db:/var/lib/postgresql # ensure that /build/postgresql/data exists and is owned by your user (1000:1000)
- ./build/postgresql/data:/var/lib/postgresql/data
- /etc/passwd:/etc/passwd:ro
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment