This commit is contained in:
Yax 2021-11-01 18:41:59 +01:00
parent 8bb670d33e
commit 9bd9f23d9e
2 changed files with 21 additions and 30 deletions

35
photo/docker-compose.photo.yml Normal file → Executable file
View file

@ -1,26 +1,12 @@
version: '3' version: '3'
services: 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: pigallery2:
container_name: pigallery2 container_name: pigallery2
environment: environment:
NODE_ENV: production NODE_ENV: production
VIRTUAL_HOST: ${HOST_PIGALLERY}.${DOMAIN}
LETSENCRYPT_HOST: ${HOST_PIGALLERY}.${DOMAIN}
image: bpatrik/pigallery2:1.9.0-alpine image: bpatrik/pigallery2:1.9.0-alpine
networks: networks:
- srv - srv
@ -31,15 +17,16 @@ services:
- pigallery_config:/app/data/config:rw - pigallery_config:/app/data/config:rw
- pigallerydb_data:/app/data/db:rw - pigallerydb_data:/app/data/db:rw
- pigallery_tmp:/app/data/tmp: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: healthcheck:
disable: true 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
volumes: volumes:
pigallerydb_data: pigallerydb_data:

16
seafile/docker-compose.seafile.yml Normal file → Executable file
View file

@ -32,6 +32,8 @@ services:
SEAFILE_SERVER_HOSTNAME: ${HOST_SEAFILE}.${DOMAIN} SEAFILE_SERVER_HOSTNAME: ${HOST_SEAFILE}.${DOMAIN}
SEAFILE_SERVER_LETSENCRYPT: "false" SEAFILE_SERVER_LETSENCRYPT: "false"
TIME_ZONE: ${TZ} TIME_ZONE: ${TZ}
VIRTUAL_HOST: ${HOST_SEAFILE}.${DOMAIN}
LETSENCRYPT_HOST: ${HOST_SEAFILE}.${DOMAIN}
image: seafileltd/seafile-mc:latest image: seafileltd/seafile-mc:latest
networks: networks:
- srv - srv
@ -40,12 +42,14 @@ services:
- 80 - 80
volumes: volumes:
- seafile_data:/shared:rw - seafile_data:/shared:rw
labels: - type: bind
- traefik.enable=true source: ${ROOT_INSTALL}/data/seafile-fuse
- traefik.http.routers.seafile.rule=Host(`${HOST_SEAFILE}.${DOMAIN}`) target: /seafile-fuse
- traefik.http.routers.seafile.entrypoints=websecure bind:
- traefik.http.routers.seafile.tls=true propagation: rshared
- traefik.http.services.seafile.loadbalancer.server.port=80 privileged: true
cap_add:
- SYS_ADMIN
volumes: volumes:
seafile_db: seafile_db: