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'
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:

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_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: