Use postgres dockerfile for dev db instance

This commit is contained in:
Leendert de Borst
2025-12-02 13:52:37 +01:00
parent 819385bc0a
commit a58426abcb
2 changed files with 7 additions and 1 deletions

View File

@@ -7,6 +7,9 @@ LABEL org.opencontainers.image.licenses="AGPL-3.0"
LABEL org.opencontainers.image.title="AliasVault PostgreSQL"
LABEL org.opencontainers.image.description="PostgreSQL database for AliasVault. Part of multi-container setup and can be deployed via install.sh (see docs.aliasvault.net)"
# Install pigz for parallel compression during database exports
RUN apk add --no-cache pigz
# Add custom PostgreSQL configuration
COPY apps/server/Databases/AliasServerDb/postgresql.conf /etc/postgresql/postgresql.conf

View File

@@ -1,6 +1,9 @@
services:
postgres-dev:
image: postgres:16-alpine
build:
context: ..
dockerfile: apps/server/Databases/AliasServerDb/Dockerfile
image: aliasvault-postgres-dev
ports:
- "5433:5432"
volumes: