From 71b515058502c805ad2f050f9346be0468bb5273 Mon Sep 17 00:00:00 2001
From: Yax <1949284+kianby@users.noreply.github.com>
Date: Sat, 18 Jul 2020 15:13:44 +0200
Subject: [PATCH] pigallery synced with seafile

---
 .env.default                   |  1 +
 photo/docker-compose.photo.yml | 46 ++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 photo/docker-compose.photo.yml

diff --git a/.env.default b/.env.default
index e2db2a6..8bc6605 100644
--- a/.env.default
+++ b/.env.default
@@ -16,6 +16,7 @@ HOST_WALLABAG=wallabag
 HOST_SHAARLI=shaarli
 HOST_SELFOSS=selfoss
 HOST_BAIKAL=baikal
+HOST_PIGALLERY=pigallery
 # other
 TZ=Europe/Paris
 BASIC_AUTH=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/
diff --git a/photo/docker-compose.photo.yml b/photo/docker-compose.photo.yml
new file mode 100644
index 0000000..8430d38
--- /dev/null
+++ b/photo/docker-compose.photo.yml
@@ -0,0 +1,46 @@
+version: '3'
+
+services:
+  seafcli-photo:
+    restart: always
+    image: gronis/seafile-client
+    container_name: seafile-client
+    environment:
+      - LIBRARY_ID=${SEAFILE_PHOTO_LIBRARY}
+      - SERVER_URL=${HOST_SEAFILE}.${DOMAIN}
+      - SERVER_PORT=443
+      - USERNAME=${SEAFILE_REGULAR_USER}
+      - PASSWORD=${SEAFILE_REGULAR_PASSWORD}
+      - DATA_DIR=/images
+    networks:
+      - srv      
+    volumes:
+      - images:/images
+
+  pigallery2:
+    container_name: pigallery2
+    environment:
+      NODE_ENV: production
+    image: bpatrik/pigallery2:latest
+    networks:
+      - srv    
+    expose:
+      - 80
+    restart: unless-stopped
+    volumes:
+    - pigallery_config:/app/data/config:rw
+    - pigallerydb_data:/app/data/db:rw
+    - pigallery_tmp:/app/data/tmp:rw
+    - images:/app/data/images:ro
+    labels:
+      - traefik.enable=true
+      - traefik.http.routers.selfoss.rule=Host(`${HOST_PIGALLERY}.${DOMAIN}`)
+      - traefik.http.routers.selfoss.entrypoints=websecure
+      - traefik.http.routers.selfoss.tls=true
+      - traefik.http.services.selfoss.loadbalancer.server.port=80
+
+volumes:
+  images:
+  pigallerydb_data:
+  pigallery_tmp:
+  pigallery_config:
\ No newline at end of file