84 lines
2.3 KiB
YAML
84 lines
2.3 KiB
YAML
version: "3.7"
|
|
services:
|
|
librephotos:
|
|
image: reallibrephotos/librephotos-proxy:2022w39
|
|
container_name: librephotos
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/scan:/data
|
|
- ${APP_DATA_DIR}/data/protected_media:/protected_media
|
|
- ${APP_DATA_DIR}/data/proxy/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
ports:
|
|
- ${APP_PORT}:80
|
|
depends_on:
|
|
- librephotos-backend
|
|
- librephotos-frontend
|
|
networks:
|
|
- tipi_main_network
|
|
|
|
librephotos-db:
|
|
image: postgres:14
|
|
container_name: librephotos-db
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_PASSWORD: ${LIBREPHOTOS_DB_PASSWORD}
|
|
POSTGRES_USER: tipi
|
|
POSTGRES_DB: librephotos
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data
|
|
#Checking health of Postgres db
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- tipi_main_network
|
|
|
|
librephotos-frontend:
|
|
image: reallibrephotos/librephotos-frontend:2022w36
|
|
container_name: librephotos-frontend
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- librephotos-backend
|
|
networks:
|
|
- tipi_main_network
|
|
|
|
librephotos-backend:
|
|
image: reallibrephotos/librephotos:2022w36
|
|
container_name: librephotos-backend
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/scan:/data
|
|
- ${APP_DATA_DIR}/data/protected_media:/protected_media
|
|
- ${APP_DATA_DIR}/data/logs:/logs
|
|
- ${APP_DATA_DIR}/data/cache:/root/.cache
|
|
environment:
|
|
- SECRET_KEY=${LIBREPHOTOS_SECRET_KEY}
|
|
- BACKEND_HOST=librephotos-backend
|
|
- ADMIN_EMAIL=${LIBREPHOTOS_EMAIL}
|
|
- ADMIN_USERNAME=${LIBREPHOTOS_USERNAME}
|
|
- ADMIN_PASSWORD=${LIBREPHOTOS_PASSWORD}
|
|
- DB_BACKEND=postgresql
|
|
- DB_NAME=librephotos
|
|
- DB_USER=tipi
|
|
- DB_PASS=${LIBREPHOTOS_DB_PASSWORD}
|
|
- DB_HOST=librephotos-db
|
|
- DB_PORT=5432
|
|
- REDIS_HOST=librephotos-redis
|
|
- REDIS_PORT=6379
|
|
- ALLOW_UPLOAD=true
|
|
- DEBUG=0
|
|
# Wait for Postgres
|
|
depends_on:
|
|
librephotos-db:
|
|
condition: service_healthy
|
|
networks:
|
|
- tipi_main_network
|
|
|
|
librephotos-redis:
|
|
image: redis:6
|
|
container_name: librephotos-redis
|
|
restart: unless-stopped
|
|
networks:
|
|
- tipi_main_network |