-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
56 lines (55 loc) · 1.85 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.2
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
networks:
- docker-elk
restart: on-failure
py-image-dedup:
# build: .
image: markusressel/py-image-dedup:latest
environment:
- PUID=1000
- PGID=1000
# change configuration to your liking
- PY_IMAGE_DEDUP_DRY_RUN=True
- PY_IMAGE_DEDUP_ANALYSIS_SOURCE_DIRECTORIES=/mnt/source/
- PY_IMAGE_DEDUP_ANALYSIS_RECURSIVE=True
- PY_IMAGE_DEDUP_ANALYSIS_ACROSS_DIRS=True
- PY_IMAGE_DEDUP_ANALYSIS_FILE_EXTENSIONS=.png,.jpg,.jpeg
- PY_IMAGE_DEDUP_ANALYSIS_THREADS=8
- PY_IMAGE_DEDUP_ANALYSIS_USE_EXIF_DATA=True
- PY_IMAGE_DEDUP_DEDUPLICATION_DUPLICATES_TARGET_DIRECTORY=/mnt/duplicates/
- PY_IMAGE_DEDUP_ELASTICSEARCH_HOST=elasticsearch
- PY_IMAGE_DEDUP_ELASTICSEARCH_PORT=9200
- PY_IMAGE_DEDUP_ELASTICSEARCH_INDEX=images
- PY_IMAGE_DEDUP_ELASTICSEARCH_AUTO_CREATE_INDEX=True
- PY_IMAGE_DEDUP_ELASTICSEARCH_MAX_DISTANCE=0.1
- PY_IMAGE_DEDUP_REMOVE_EMPTY_FOLDERS=False
- PY_IMAGE_DEDUP_STATS_ENABLED=True
- PY_IMAGE_DEDUP_STATS_PORT=8000
volumes:
# optionally mount a YAML configuration file
# into /app/py_image_dedup.yaml instead of using environment:
# - /mnt/data3/py_image_dedup.yaml:/app/py_image_dedup.yaml
# change this to your local source directory:
- /mnt/data3/py-image-dedup_testdata:/mnt/source
# change this to your local duplicates directory:
- /mnt/data3/py-image-dedup_duplicates:/mnt/duplicates
links:
- elasticsearch
networks:
- docker-elk
ports:
- "8000:8000"
depends_on:
- elasticsearch
restart: on-failure
networks:
docker-elk:
driver: bridge