10 lines
3.7 KiB
JSON
10 lines
3.7 KiB
JSON
{
|
|
"Format": "hcl2",
|
|
"JobID": "immich",
|
|
"JobModifyIndex": 14198769,
|
|
"Namespace": "default",
|
|
"Source": "job \"immich\" {\n datacenters = [\"dc1\"] # Specify your datacenter\n type = \"service\"\n\n group \"immich\" {\n count = 1\n\n task \"immich\" {\n driver = \"docker\"\n\n config {\n image = \"ghcr.io/imagegenius/immich:2.2.3-noml\"\n memory_hard_limit = \"2048\"\n ports = [\"http\"]\n volumes = [\n \"/mnt/Public/configs/Immich:/config\",\n \"/mnt/Public/Immich/Photos:/photos\",\n \"/mnt/Public/Immich/libraries:/libraries\" # optional\n ]\n }\n\n env {\n PUID = \"1000\"\n PGID = \"1000\"\n TZ = \"Etc/UTC\"\n DB_HOSTNAME = \"master.postgres.service.dc1.consul\"\n DB_USERNAME = \"postgres\"\n DB_PASSWORD = \"postgres\"\n DB_DATABASE_NAME = \"immich\"\n DB_PORT = \"5432\" # optional\n REDIS_HOSTNAME = \"redis.service.dc1.consul\"\n REDIS_PORT = \"6379\" # optional\n REDIS_PASSWORD = \"\" # optional\n MACHINE_LEARNING_HOST = \"0.0.0.0\" # optional\n MACHINE_LEARNING_PORT = \"3003\" # optional\n MACHINE_LEARNING_WORKERS = \"1\" # optional\n MACHINE_LEARNING_WORKER_TIMEOUT = \"120\" # optional\n DB_VECTOR_EXTENSION= \"pgvector\"\n }\n service {\n name = \"${TASKGROUP}\"\n tags = [\"immich\", \"tools\",\n \"traefik.http.routers.immichlan.rule=Host(`immich.service.dc1.consul`)\",\n \"traefik.http.routers.immichwan.rule=Host(`immich.fbleagh.duckdns.org`)\",\n \"traefik.http.routers.immichwan.tls=true\",\n ]\n port = \"http\"\n\n }\n resources {\n cpu = 500\n memory = 512\n }\n }\n\n network {\n port \"http\" {\n static = 8088\n to = 8080\n }\n }\n\n restart {\n attempts = 2\n interval = \"5m\"\n delay = \"30s\"\n mode = \"delay\"\n }\n }\n\n# group \"immichpg\" {\n# count = 1\n\n# task \"immichpg\" {\n# driver = \"docker\"\n\n# config {\n# image = \"tensorchord/pgvecto-rs:pg14-v0.2.0\"\n# ports = [\"pg\"]\n# }\n# env {\n# POSTGRES_USER=\"postgres\"\n# POSTGRES_PASSWORD = \"postgres\"\n# POSTGRES_DB = \"immich\"\n# }\n\n# service {\n# name = \"${TASKGROUP}\"\n# tags = [\"immich\", \"tools\"]\n# port = \"pg\" \n\n# }\n# resources {\n# cpu = 500\n# memory = 500\n# }\n# }\n\n# network {\n# port \"pg\" {\n# static = 5433\n# to = 5432\n# }\n# }\n\n# restart {\n# attempts = 2\n# interval = \"5m\"\n# delay = \"30s\"\n# mode = \"delay\"\n# }\n\n\n# }\n\n group \"redis\" {\n count = 1\n\n task \"redis\" {\n driver = \"docker\"\n\n config {\n image = \"redis\"\n ports = [\"redis\"]\n }\n service {\n name = \"${TASKGROUP}\"\n tags = [\"wallabag\", \"tools\"]\n port = \"redis\" \n\n }\n resources {\n cpu = 250\n memory = 256\n }\n }\n\n network {\n port \"redis\" {\n static = 6379\n }\n }\n\n restart {\n attempts = 2\n interval = \"5m\"\n delay = \"30s\"\n mode = \"delay\"\n }\n }\n}\n",
|
|
"VariableFlags": null,
|
|
"Variables": "",
|
|
"Version": 15
|
|
} |