diff --git a/photo/docker-compose.photo.yml b/photo/docker-compose.photo.yml old mode 100644 new mode 100755 index 828107b..33858d2 --- a/photo/docker-compose.photo.yml +++ b/photo/docker-compose.photo.yml @@ -1,26 +1,12 @@ version: '3' services: - seafcli-photo: - image: snegov/seafile-client - container_name: seafcli-photo - restart: unless-stopped - environment: - - LIBRARY_ID=${SEAFILE_PHOTO_LIBRARY} - - SERVER_HOST=${HOST_SEAFILE}.${DOMAIN} - - SERVER_PORT=443 - - USERNAME=${SEAFILE_REGULAR_USER} - - PASSWORD=${SEAFILE_REGULAR_PASSWORD} - - DATA_DIR=/library - networks: - - srv - volumes: - - ${ROOT_INSTALL}/data/sync:/library - pigallery2: container_name: pigallery2 environment: NODE_ENV: production + VIRTUAL_HOST: ${HOST_PIGALLERY}.${DOMAIN} + LETSENCRYPT_HOST: ${HOST_PIGALLERY}.${DOMAIN} image: bpatrik/pigallery2:1.9.0-alpine networks: - srv @@ -31,15 +17,16 @@ services: - pigallery_config:/app/data/config:rw - pigallerydb_data:/app/data/db:rw - pigallery_tmp:/app/data/tmp:rw - - ${ROOT_INSTALL}/data/sync/Photos:/app/data/images:ro + - type: bind + source: ${ROOT_INSTALL}/data/seafile-fuse + target: /app/data/images + bind: + propagation: rslave + privileged: true + cap_add: + - SYS_ADMIN healthcheck: - disable: true - labels: - - traefik.enable=true - - traefik.http.routers.pigallery_config.rule=Host(`${HOST_PIGALLERY}.${DOMAIN}`) - - traefik.http.routers.pigallery_config.entrypoints=websecure - - traefik.http.routers.pigallery_config.tls=true - - traefik.http.services.pigallery_config.loadbalancer.server.port=80 + disable: true volumes: pigallerydb_data: diff --git a/seafile/docker-compose.seafile.yml b/seafile/docker-compose.seafile.yml old mode 100644 new mode 100755 index 71ed9ef..451bf8e --- a/seafile/docker-compose.seafile.yml +++ b/seafile/docker-compose.seafile.yml @@ -32,6 +32,8 @@ services: SEAFILE_SERVER_HOSTNAME: ${HOST_SEAFILE}.${DOMAIN} SEAFILE_SERVER_LETSENCRYPT: "false" TIME_ZONE: ${TZ} + VIRTUAL_HOST: ${HOST_SEAFILE}.${DOMAIN} + LETSENCRYPT_HOST: ${HOST_SEAFILE}.${DOMAIN} image: seafileltd/seafile-mc:latest networks: - srv @@ -40,12 +42,14 @@ services: - 80 volumes: - seafile_data:/shared:rw - labels: - - traefik.enable=true - - traefik.http.routers.seafile.rule=Host(`${HOST_SEAFILE}.${DOMAIN}`) - - traefik.http.routers.seafile.entrypoints=websecure - - traefik.http.routers.seafile.tls=true - - traefik.http.services.seafile.loadbalancer.server.port=80 + - type: bind + source: ${ROOT_INSTALL}/data/seafile-fuse + target: /seafile-fuse + bind: + propagation: rshared + privileged: true + cap_add: + - SYS_ADMIN volumes: seafile_db: