selfhosting/photo/docker-compose.photo.yml

47 lines
No EOL
1.3 KiB
YAML
Executable file

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
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
- ${ROOT_INSTALL}/data/sync/Photos:/app/data/images:ro
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
volumes:
pigallerydb_data:
pigallery_tmp:
pigallery_config: