Rename Datatabase env vars and add main postgres container

This commit is contained in:
2025-09-14 09:41:34 +02:00
parent c12dcda276
commit 206d6cc605
8 changed files with 48 additions and 27 deletions

2
postgres/.env.example Normal file
View File

@@ -0,0 +1,2 @@
POSTGRES_USER=
POSTGRES_PASSWORD=

View File

@@ -0,0 +1,18 @@
services:
postgres:
image: ghcr.io/immich-app/postgres:17-vectorchord0.4.3-pgvectors0.3.0
container_name: database
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_INITDB_ARGS: '--data-checksums --encoding=UTF-8 --locale=C'
DB_STORAGE_TYPE: 'HDD'
restart: always
env_file:
- .env
ports:
- 5432:5432
networks:
- postgres
networks:
postgres: