readytouse
This commit is contained in:
parent
91063c1a0c
commit
9281354f2e
16 changed files with 690 additions and 0 deletions
14
immich-ansible/templates/.env.j2
Normal file
14
immich-ansible/templates/.env.j2
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Fichier généré par Ansible - ne pas modifier directement.
|
||||
|
||||
# Bibliothèque Immich : bind mount vers le partage NFS
|
||||
UPLOAD_LOCATION={{ immich_library_path }}
|
||||
|
||||
# Base PostgreSQL : volontairement locale, pas sur NFS
|
||||
DB_DATA_LOCATION={{ immich_postgres_data_path }}
|
||||
|
||||
TZ={{ server_timezone }}
|
||||
IMMICH_VERSION={{ immich_version }}
|
||||
|
||||
DB_PASSWORD={{ immich_db_password }}
|
||||
DB_USERNAME={{ immich_db_username }}
|
||||
DB_DATABASE_NAME={{ immich_db_database }}
|
||||
64
immich-ansible/templates/docker-compose.yml.j2
Normal file
64
immich-ansible/templates/docker-compose.yml.j2
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
name: immich
|
||||
|
||||
services:
|
||||
immich-server:
|
||||
image: "{{ immich_server_image }}:${IMMICH_VERSION:-{{ immich_version }}}"
|
||||
container_name: immich_server
|
||||
restart: always
|
||||
depends_on:
|
||||
- redis
|
||||
- database
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- "${UPLOAD_LOCATION}:/data"
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
ports:
|
||||
- "127.0.0.1:{{ immich_host_http_port }}:{{ immich_container_http_port }}"
|
||||
healthcheck:
|
||||
disable: false
|
||||
networks:
|
||||
- immich
|
||||
|
||||
immich-machine-learning:
|
||||
image: "{{ immich_machine_learning_image }}:${IMMICH_VERSION:-{{ immich_version }}}"
|
||||
container_name: immich_machine_learning
|
||||
restart: always
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- "{{ immich_model_cache_path }}:/cache"
|
||||
healthcheck:
|
||||
disable: false
|
||||
networks:
|
||||
- immich
|
||||
|
||||
redis:
|
||||
image: "{{ immich_redis_image }}"
|
||||
container_name: immich_redis
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: redis-cli ping || exit 1
|
||||
networks:
|
||||
- immich
|
||||
|
||||
database:
|
||||
image: "{{ immich_postgres_image }}"
|
||||
container_name: immich_postgres
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||
POSTGRES_USER: ${DB_USERNAME}
|
||||
POSTGRES_DB: ${DB_DATABASE_NAME}
|
||||
POSTGRES_INITDB_ARGS: "--data-checksums"
|
||||
volumes:
|
||||
- "${DB_DATA_LOCATION}:/var/lib/postgresql/data"
|
||||
shm_size: 128mb
|
||||
healthcheck:
|
||||
disable: false
|
||||
networks:
|
||||
- immich
|
||||
|
||||
networks:
|
||||
immich:
|
||||
name: immich
|
||||
Loading…
Add table
Add a link
Reference in a new issue