Cloud VM: Add immich & prepare for Nextcloud memories (#9)
Infrastructure / Check and run Ansbile playbooks (push) Failing after 2m50s Details

We want to test out what is better - Immich or Nextcloud memories.

Reviewed-on: #9
This commit is contained in:
Gleb Koval 2023-09-27 21:18:49 +00:00
parent 21c6b627a8
commit 47335e40f6
5 changed files with 52 additions and 18 deletions

View File

@ -93,6 +93,12 @@
backup: true backup: true
storage: nvme storage: nvme
size: 2048 size: 2048
- name: Create media disk
community.general.proxmox_disk:
disk: scsi2
backup: false
storage: zfs
size: 4096
- name: Update VM - name: Update VM
community.general.proxmox_kvm: community.general.proxmox_kvm:
update: true update: true

View File

@ -40,3 +40,25 @@
opts: rw,errors=remount-ro,x-systemd.growfs opts: rw,errors=remount-ro,x-systemd.growfs
state: mounted state: mounted
become: true become: true
- name: Create media partition
community.general.parted:
device: /dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:2
label: gpt
name: media
number: 1
state: present
become: true
- name: Create media filesystem
community.general.filesystem:
dev: /dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:2-part1
fstype: ext4
become: true
- name: Mount media partition
ansible.posix.mount:
src: /dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:2-part1
path: /mnt/media
fstype: ext4
opts: rw,errors=remount-ro,x-systemd.growfs
state: mounted
become: true

View File

@ -11,17 +11,17 @@
ansible.builtin.user: ansible.builtin.user:
name: debian name: debian
register: user register: user
# - name: Docker compose down - name: Docker compose down
# ansible.builtin.command: docker compose down ansible.builtin.command: docker compose down
# args: args:
# chdir: "{{ user.home }}/{{ app }}" chdir: "{{ user.home }}/{{ app }}"
# ignore_errors: true ignore_errors: true
# - name: Copy project - name: Copy project
# ansible.builtin.copy: ansible.builtin.copy:
# src: ./{{ app }} src: ./{{ app }}
# dest: "{{ user.home }}" dest: "{{ user.home }}"
# mode: "0744" mode: "0744"
# - name: Docker compose up -d - name: Docker compose up -d
# ansible.builtin.command: docker compose up -d ansible.builtin.command: docker compose up -d
# args: args:
# chdir: "{{ user.home }}/{{ app }}" chdir: "{{ user.home }}/{{ app }}"

View File

@ -1,4 +1,4 @@
version: "3" version: "3.8"
services: services:
immich-server: immich-server:
@ -36,7 +36,7 @@ services:
container_name: immich_machine_learning container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
volumes: volumes:
- /mnt/data/immich-model-cache:/cache - model-cache:/cache
env_file: env_file:
- .env - .env
restart: always restart: always
@ -57,7 +57,7 @@ services:
# remove this to get debug messages # remove this to get debug messages
- GLOG_minloglevel=1 - GLOG_minloglevel=1
volumes: volumes:
- /mnt/data/immich-typesense:/data - tsdata:/data
restart: always restart: always
redis: redis:
@ -75,7 +75,7 @@ services:
POSTGRES_USER: ${DB_USERNAME} POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_DB: ${DB_DATABASE_NAME}
volumes: volumes:
- /mnt/data/immich-pgdata:/var/lib/postgresql/data - pgdata:/var/lib/postgresql/data
restart: always restart: always
immich-proxy: immich-proxy:
@ -91,3 +91,8 @@ services:
- immich-server - immich-server
- immich-web - immich-web
restart: always restart: always
volumes:
pgdata:
model-cache:
tsdata:

View File

@ -11,6 +11,7 @@ docker run \
--publish 8080:8080 \ --publish 8080:8080 \
--env NEXTCLOUD_UPLOAD_LIMIT=16G \ --env NEXTCLOUD_UPLOAD_LIMIT=16G \
--env NEXTCLOUD_MAX_TIME=7200 \ --env NEXTCLOUD_MAX_TIME=7200 \
--env NEXTCLOUD_ADDITIONAL_APKS="imagemagick ffmpeg" \
--env APACHE_PORT=11000 \ --env APACHE_PORT=11000 \
--env APACHE_IP_BINDING=0.0.0.0 \ --env APACHE_IP_BINDING=0.0.0.0 \
--env TZ=Europe/London \ --env TZ=Europe/London \