commit 6b77d3c740586999816bde914638c22684d67461 Author: Peter Smit Date: Sun Feb 18 11:35:38 2024 +0100 init commit diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..311b74e --- /dev/null +++ b/.env.example @@ -0,0 +1,24 @@ +############################# +# Vaultwarden variables +############################# +VAULTWARDEN_DATA_LOCATION=/data/vaultwarden +VAULTWARDEN_ADMIN_TOKEN=admin + +############################# +# Gitea variables +############################# +GITEA_DATA_LOCATION=/data/gitea/data +GITEA_CONFIG_LOCATION=/data/gitea/config + +############################# +# Immich variables +############################# +UPLOAD_LOCATION=/data/immich +IMMICH_VERSION=release + +DB_HOSTNAME=immich_postgres +DB_USERNAME=postgres +DB_PASSWORD=password +DB_DATABASE_NAME=immich + +REDIS_HOSTNAME=immich_redis \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..451fb35 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +.idea \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6d60fe7 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,88 @@ +version: "3.8" + +services: +################################################################################################### + vaultwarden: + container_name: vaultwarden + image: vaultwarden/server:latest + restart: always + volumes: + - ${VAULTWARDEN_DATA_LOCATION}:/data/ + environment: + - ADMIN_TOKEN=${VAULTWARDEN_ADMIN_TOKEN} + env_file: + - .env + ports: + - "8080:80" +################################################################################################### + gitea: + container_name: gitea + image: gitea/gitea:latest-rootless + restart: always + volumes: + - ${GITEA_DATA_LOCATION}:/var/lib/gitea + - ${GITEA_CONFIG_LOCATION}:/etc/gitea + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + env_file: + - .env + ports: + - "3000:3000" + - "2222:2222" +################################################################################################### + immich-server: + container_name: immich_server + image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} + command: [ "start.sh", "immich" ] + volumes: + - ${UPLOAD_LOCATION}:/usr/src/app/upload + - /etc/localtime:/etc/localtime:ro + env_file: + - .env + ports: + - "2283:3001" + depends_on: + - immich-redis + - immich-database + restart: always + immich-microservices: + container_name: immich_microservices + image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} + command: [ "start.sh", "microservices" ] + volumes: + - ${UPLOAD_LOCATION}:/usr/src/app/upload + - /etc/localtime:/etc/localtime:ro + env_file: + - .env + depends_on: + - immich-redis + - immich-database + restart: always + immich-machine-learning: + container_name: immich_machine_learning + image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} + volumes: + - immich-model-cache:/cache + env_file: + - .env + restart: always + immich-redis: + container_name: immich_redis + image: redis:6.2-alpine@sha256:afb290a0a0d0b2bd7537b62ebff1eb84d045c757c1c31ca2ca48c79536c0de82 + restart: always + immich-database: + container_name: immich_postgres + image: tensorchord/pgvecto-rs:pg14-v0.1.11@sha256:0335a1a22f8c5dd1b697f14f079934f5152eaaa216c09b61e293be285491f8ee + env_file: + - .env + environment: + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_USER: ${DB_USERNAME} + POSTGRES_DB: ${DB_DATABASE_NAME} + volumes: + - immich-pgdata:/var/lib/postgresql/data + restart: always + +volumes: + immich-pgdata: + immich-model-cache: \ No newline at end of file