set database connection and proxy access
This commit is contained in:
@@ -5,6 +5,14 @@ services:
|
|||||||
hostname: immich
|
hostname: immich
|
||||||
image: ghcr.io/immich-app/immich-server:release
|
image: ghcr.io/immich-app/immich-server:release
|
||||||
command: [ "start.sh", "immich" ]
|
command: [ "start.sh", "immich" ]
|
||||||
|
environment:
|
||||||
|
- DB_HOSTNAME: immich_postgres
|
||||||
|
- DB_USERNAME: postgres
|
||||||
|
- DB_PASSWORD: postgres
|
||||||
|
- DB_DATABASE_NAME: immich
|
||||||
|
networks:
|
||||||
|
- reverse-proxy
|
||||||
|
- default
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- database
|
- database
|
||||||
@@ -38,13 +46,13 @@ services:
|
|||||||
hostname: redis
|
hostname: redis
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
database:
|
immich_postgres:
|
||||||
|
hostname: immich_postgres
|
||||||
image: tensorchord/pgvecto-rs:pg14-v0.1.11
|
image: tensorchord/pgvecto-rs:pg14-v0.1.11
|
||||||
hostname: database
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
POSTGRES_DB: immich
|
POSTGRES_DB: immich
|
||||||
volumes:
|
volumes:
|
||||||
- ${NASCOMPOSE_SERVICES?}/photo-collector/volumes/database_data/:/var/lib/postgresql/data/
|
- ${NASCOMPOSE_SERVICES?}/photo-collector/volumes/immich_postgres_data/:/var/lib/postgresql/data/
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user