1
0
1Panel-Appstore/apps/immich/release/docker-compose.yml

94 lines
2.7 KiB
YAML
Raw Normal View History

2024-01-11 12:12:38 +08:00
services:
immich-server:
container_name: ${CONTAINER_NAME}-server
restart: always
networks:
- 1panel-network
image: altran1502/immich-server:release
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
2024-07-15 23:08:52 +08:00
environment:
- DB_PASSWORD=${PANEL_DB_USER_PASSWORD}
- DB_HOSTNAME=${CONTAINER_NAME}-postgres
- DB_USERNAME=${PANEL_DB_USER}
- DB_DATABASE_NAME=${PANEL_DB_NAME}
- REDIS_HOSTNAME=${CONTAINER_NAME}-redis
2024-01-11 12:12:38 +08:00
ports:
2024-10-19 01:30:16 +08:00
- ${PANEL_APP_PORT_HTTP}:2283
2024-01-11 12:12:38 +08:00
depends_on:
- immich-redis
- immich-database
2024-08-26 23:55:22 +08:00
healthcheck:
disable: false
2024-01-11 12:12:38 +08:00
labels:
createdBy: "Apps"
immich-machine-learning:
container_name: ${CONTAINER_NAME}-machine_learning
restart: always
networks:
- 1panel-network
image: altran1502/immich-machine-learning:release
volumes:
- ${CACHE_PATH}:/cache
2024-07-15 23:08:52 +08:00
environment:
- DB_PASSWORD=${PANEL_DB_USER_PASSWORD}
- DB_HOSTNAME=${CONTAINER_NAME}-postgres
- DB_USERNAME=${PANEL_DB_USER}
- DB_DATABASE_NAME=${PANEL_DB_NAME}
- REDIS_HOSTNAME=${CONTAINER_NAME}-redis
2024-08-26 23:55:22 +08:00
healthcheck:
disable: false
2024-01-11 12:12:38 +08:00
labels:
createdBy: "Apps"
immich-redis:
container_name: ${CONTAINER_NAME}-redis
restart: always
networks:
- 1panel-network
2024-06-01 18:00:28 +08:00
image: "redis:6.2-alpine"
2024-06-17 23:41:22 +08:00
healthcheck:
test: redis-cli ping || exit 1
2024-01-11 12:12:38 +08:00
labels:
createdBy: "Apps"
immich-database:
container_name: ${CONTAINER_NAME}-postgres
restart: always
networks:
- 1panel-network
2024-06-01 18:00:28 +08:00
image: "tensorchord/pgvecto-rs:pg14-v0.2.0"
2024-01-11 12:12:38 +08:00
environment:
2024-07-15 23:08:52 +08:00
- REDIS_HOSTNAME=${CONTAINER_NAME}-redis
2024-01-11 12:12:38 +08:00
- POSTGRES_PASSWORD=${PANEL_DB_USER_PASSWORD}
- POSTGRES_USER=${PANEL_DB_USER}
- POSTGRES_DB=${PANEL_DB_NAME}
2024-05-16 00:11:09 +08:00
- POSTGRES_INITDB_ARGS=--data-checksums
2024-01-11 12:12:38 +08:00
volumes:
- ${DB_PATH}:/var/lib/postgresql/data
2024-06-17 23:41:22 +08:00
healthcheck:
2024-12-03 01:46:09 +08:00
test: >-
pg_isready --dbname="$${PANEL_DB_NAME}" --username="$${PANEL_DB_USER}" || exit 1;
Chksum="$$(psql --dbname="$${PANEL_DB_NAME}" --username="$${PANEL_DB_USER}" --tuples-only --no-align
--command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
echo "checksum failure count is $$Chksum";
[ "$$Chksum" = '0' ] || exit 1
2024-06-17 23:41:22 +08:00
interval: 5m
start_interval: 30s
start_period: 5m
2024-12-03 01:46:09 +08:00
command: >-
postgres
-c shared_preload_libraries=vectors.so
-c 'search_path="$$user", public, vectors'
-c logging_collector=on
-c max_wal_size=2GB
-c shared_buffers=512MB
-c wal_compression=on
2024-01-11 12:12:38 +08:00
labels:
createdBy: "Apps"
2024-07-15 23:08:52 +08:00
networks:
1panel-network:
2024-01-11 12:12:38 +08:00
external: true