diff --git a/immich/docker-compose.yml b/immich/docker-compose.yml new file mode 100644 index 0000000..4126f25 --- /dev/null +++ b/immich/docker-compose.yml @@ -0,0 +1,62 @@ +version: '3.8' + +services: + immich-server: + container_name: immich_server + image: ghcr.io/immich-app/immich-server:release + volumes: + - ${UPLOAD_LOCATION}:/usr/src/app/upload + - /etc/localtime:/etc/localtime:ro + env_file: + - stack.env + ports: + - 2283:3001 + depends_on: + - redis + - database + restart: always + networks: + - immich + + immich-machine-learning: + container_name: immich_machine_learning + image: ghcr.io/immich-app/immich-machine-learning:release + volumes: + - model-cache:/cache + env_file: + - stack.env + restart: always + networks: + - immich + + redis: + container_name: immich_redis + image: redis:6.2-alpine + restart: always + networks: + - immich + + database: + container_name: immich_postgres + image: tensorchord/pgvecto-rs:pg14-v0.2.0 + env_file: + - stack.env + environment: + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_USER: ${DB_USERNAME} + POSTGRES_DB: ${DB_DATABASE_NAME} + POSTGRES_INITDB_ARGS: '--data-checksums' + volumes: + - pgdata:/var/lib/postgresql/data + restart: always + networks: + - immich + 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"] + +volumes: + pgdata: + model-cache: + +networks: + immich: + driver: bridge