mirror of
https://github.com/AdrienPoupa/docker-compose-nas.git
synced 2025-06-04 05:57:30 +02:00
Merge pull request #99 from AdrienPoupa/chore/update-immich
Some checks failed
/ validate-docker-compose (push) Has been cancelled
Some checks failed
/ validate-docker-compose (push) Has been cancelled
chore: Update Immich to 120.2
This commit is contained in:
commit
aac1be202e
@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
immich-server:
|
immich-server:
|
||||||
container_name: immich_server
|
container_name: immich_server
|
||||||
image: ghcr.io/immich-app/immich-server:v1.113.0
|
image: ghcr.io/immich-app/immich-server:v1.120.2
|
||||||
environment:
|
environment:
|
||||||
DB_HOSTNAME: immich_postgres
|
DB_HOSTNAME: immich_postgres
|
||||||
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
|
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
|
||||||
@ -16,39 +16,31 @@ services:
|
|||||||
- immich-redis
|
- immich-redis
|
||||||
- immich-database
|
- immich-database
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
|
||||||
test: [ "CMD", "node", "/healthcheck/healthcheck.js" ]
|
|
||||||
interval: 30s
|
|
||||||
retries: 10
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.immich.rule=(Host(`${IMMICH_HOSTNAME}`))
|
- traefik.http.routers.immich.rule=(Host(`${IMMICH_HOSTNAME}`))
|
||||||
- traefik.http.routers.immich.tls=true
|
- traefik.http.routers.immich.tls=true
|
||||||
- traefik.http.routers.immich.tls.certresolver=myresolver
|
- traefik.http.routers.immich.tls.certresolver=myresolver
|
||||||
- traefik.http.services.immich.loadbalancer.server.port=3001
|
- traefik.http.services.immich.loadbalancer.server.port=2283
|
||||||
- homepage.group=Apps
|
- homepage.group=Apps
|
||||||
- homepage.name=immich
|
- homepage.name=Immich
|
||||||
- homepage.icon=immich.png
|
- homepage.icon=immich.png
|
||||||
- homepage.href=https://${IMMICH_HOSTNAME}
|
- homepage.href=https://${IMMICH_HOSTNAME}
|
||||||
- homepage.description=Self-hosted photo and video management solution
|
- homepage.description=Self-hosted photo and video management solution
|
||||||
- homepage.weight=4
|
- homepage.weight=4
|
||||||
- homepage.widget.type=immich
|
- homepage.widget.type=immich
|
||||||
- homepage.widget.url=http://immich-server:3001
|
- homepage.widget.url=http://immich-server:2283
|
||||||
- homepage.widget.key=${IMMICH_API_KEY}
|
- homepage.widget.key=${IMMICH_API_KEY}
|
||||||
|
- homepage.widget.version=2
|
||||||
profiles:
|
profiles:
|
||||||
- immich
|
- immich
|
||||||
|
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
container_name: immich_machine_learning
|
container_name: immich_machine_learning
|
||||||
image: ghcr.io/immich-app/immich-machine-learning:v1.113.0
|
image: ghcr.io/immich-app/immich-machine-learning:v1.120.2
|
||||||
volumes:
|
volumes:
|
||||||
- immich-model-cache:/cache
|
- immich-model-cache:/cache
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
|
||||||
test: [ "CMD", "bash", "-c", "exec 5<>/dev/tcp/127.0.0.1/3003" ]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
profiles:
|
profiles:
|
||||||
- immich
|
- immich
|
||||||
|
|
||||||
@ -57,10 +49,7 @@ services:
|
|||||||
image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:e3b17ba9479deec4b7d1eeec1548a253acc5374d68d3b27937fcfe4df8d18c7e
|
image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:e3b17ba9479deec4b7d1eeec1548a253acc5374d68d3b27937fcfe4df8d18c7e
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "redis-cli", "ping" ]
|
test: redis-cli ping || exit 1
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
profiles:
|
profiles:
|
||||||
- immich
|
- immich
|
||||||
|
|
||||||
@ -80,7 +69,22 @@ services:
|
|||||||
interval: 5m
|
interval: 5m
|
||||||
start_interval: 30s
|
start_interval: 30s
|
||||||
start_period: 5m
|
start_period: 5m
|
||||||
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"]
|
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',
|
||||||
|
]
|
||||||
profiles:
|
profiles:
|
||||||
- immich
|
- immich
|
||||||
|
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
// Inspired by: https://anthonymineo.com/docker-healthcheck-for-your-node-js-app/
|
|
||||||
const http = require('http');
|
|
||||||
const options = {
|
|
||||||
host: '127.0.0.1',
|
|
||||||
port: 3001,
|
|
||||||
timeout: 2000,
|
|
||||||
path: '/api/server-info/ping',
|
|
||||||
headers: {
|
|
||||||
'Host': process.env.HOSTNAME,
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const healthCheck = http.request(options, (res) => {
|
|
||||||
console.log(`HEALTHCHECK STATUS: ${res.statusCode}`);
|
|
||||||
if (res.statusCode === 200) {
|
|
||||||
process.exit(0);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
healthCheck.on('error', function (err) {
|
|
||||||
console.error('ERROR:' + err);
|
|
||||||
process.exit(1);
|
|
||||||
});
|
|
||||||
|
|
||||||
healthCheck.end();
|
|
Loading…
x
Reference in New Issue
Block a user