Rename Datatabase env vars and add main postgres container
This commit is contained in:
2
postgres/.env.example
Normal file
2
postgres/.env.example
Normal file
@@ -0,0 +1,2 @@
|
||||
POSTGRES_USER=
|
||||
POSTGRES_PASSWORD=
|
||||
18
postgres/docker-compose.yml
Normal file
18
postgres/docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user