mirror of
https://github.com/immich-app/base-images.git
synced 2025-09-10 07:24:16 +02:00
22 lines
553 B
YAML
22 lines
553 B
YAML
services:
|
|
postgres:
|
|
container_name: base_images_postgres
|
|
user: 1000:1001
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
args:
|
|
PG_MAJOR: 16
|
|
VECTORCHORD_TAG: 0.3.0
|
|
PGVECTOR_TAG: 0.8.0
|
|
PGVECTORS_TAG: 0.3.0
|
|
environment:
|
|
POSTGRES_PASSWORD: "password"
|
|
POSTGRES_USERNAME: "username"
|
|
POSTGRES_DB: "database_name"
|
|
POSTGRES_INITDB_ARGS: '--data-checksums'
|
|
PGDATA: /var/lib/postgresql/data/pgdata
|
|
volumes:
|
|
- ./data:/var/lib/postgresql/data
|
|
restart: always
|