Skip to content

Commit 4357497

Browse files
committed
update docker version
1 parent 7ac3de8 commit 4357497

3 files changed

Lines changed: 26 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ RUN mkdir -p /app
1212
ADD run.sh /app/
1313
RUN chmod +x /app/run.sh
1414

15+
RUN cd /app/ && git clone https://github.com/arehbein-git/ppTag.git pptag
16+
1517
VOLUME /Photos
16-
VOLUME /app/pptag
1718

1819
CMD [ "/app/run.sh" ]

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,24 @@ Images are scanned for adobe lightroom tags and rating written to the XMP data i
6969

7070
## Docker Container
7171

72-
You can use the provided docker file and docker-compose to run ppTag inside docker.
73-
The Container needs two Volumes. One for the photos and the second for the app.
74-
This way it is easy to make changes to the files (config)
72+
You can use the provided docker file to build the image yourself or use the dockerhub versions arehbein/pptag.
73+
The container needs one volumes for the photos:
74+
```
75+
<path to photolibrary>:/Photos
76+
```
77+
The config file should be mounted as readonly:
78+
```
79+
<path to config>/config.py:/app/pptag/config.py:ro
80+
```
81+
82+
83+
Run the image
84+
85+
```bash
86+
docker run -v <path to photolibrary>:/Photos -v <path to config>/config.py:/app/pptag/config.py:ro -d arehbein/pptag
87+
```
88+
89+
Use the provided docker-compose:
90+
```bash
91+
docker-compose up -d
92+
```

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
version: '3'
22
services:
33
pptag:
4-
image: pptag:latest
4+
image: arehbein/pptag:latest
55
restart: always
66
volumes:
77
- /share/Photos/:/Photos
8-
- /share/Container/pptag/:/app/pptag
8+
# needs to be an absolute path
9+
- /share/Container/pptag/config.py:/app/pptag/config.py:ro

0 commit comments

Comments
 (0)