diff --git a/README.md b/README.md index fc4fd47..52d4cc5 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,15 @@ services: power-tools: container_name: immich_power_tools image: ghcr.io/immich-power-tools/immich-power-tools:latest + volumes: + - immich-power-tools-data:/app/data ports: - "8001:3000" env_file: - .env + +volumes: + immich-power-tools-data: ``` Add the Immich API Key and immich url's to the env file (which you already have for the immich). @@ -75,7 +80,7 @@ If you're using portainer, run the docker using `docker run` and add the power t ```bash # Run the power tools from docker -docker run -d --name immich_power_tools -p 8001:3000 --env-file .env ghcr.io/immich-power-tools/immich-power-tools:latest +docker run -d --name immich_power_tools -p 8001:3000 -v immich-power-tools-data:/app/data --env-file .env ghcr.io/immich-power-tools/immich-power-tools:latest # Add Power tools to the same network as immich docker network connect immich_default immich_power_tools diff --git a/docker-compose-all-immich.yml b/docker-compose-all-immich.yml index 4cc519d..d229aba 100644 --- a/docker-compose-all-immich.yml +++ b/docker-compose-all-immich.yml @@ -74,6 +74,8 @@ services: power-tools: container_name: immich_power_tools image: ghcr.io/immich-power-tools/immich-power-tools:latest + volumes: + - immich-power-tools-data:/app/data ports: - "8001:3000" env_file: @@ -86,4 +88,5 @@ services: start_period: 40s volumes: - model-cache: \ No newline at end of file + model-cache: + immich-power-tools-data: \ No newline at end of file diff --git a/docker-compose.build.yml b/docker-compose.build.yml index 23e85e3..3c40446 100644 --- a/docker-compose.build.yml +++ b/docker-compose.build.yml @@ -8,5 +8,10 @@ services: dockerfile: Dockerfile ports: - "3000:3000" + volumes: + - immich-power-tools-data:/app/data env_file: - .env + +volumes: + immich-power-tools-data: diff --git a/docker-compose.yml b/docker-compose.yml index a14125a..47083f7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,8 @@ services: image: ghcr.io/immich-power-tools/immich-power-tools:latest ports: - "3000:3000" + volumes: + - immich-power-tools-data:/app/data env_file: - .env healthcheck: @@ -13,3 +15,6 @@ services: timeout: 10s retries: 3 start_period: 10s + +volumes: + immich-power-tools-data: