Files
immich-magic-proxy/docker-compose.yml
T

35 lines
1.2 KiB
YAML

services:
immich-magic-proxy:
build: .
image: immich-magic-proxy:latest
container_name: immich-magic-proxy
restart: always
ports:
- "3000:3000"
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges
volumes:
# Recipients, sessions, comments and notification state. Back this up.
# The container runs as uid 1000, which must be able to write here.
- ./data:/data
environment:
PUBLIC_BASE_URL: https://your-proxy-url.com
IMMICH_URL: http://your-internal-immich-server:2283
# Turns on the /admin console, where you add albums and recipients
ADMIN_PASSWORD: change-me-to-something-long
# Email for invitations and new-photo notifications. Either a URL...
SMTP_URL: smtp://user:password@smtp.example.com:587
# ...or SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS (and SMTP_SECURE=true for port 465)
MAIL_FROM: "Our photos <photos@example.com>"
SITE_NAME: Our photos
# Notifications go out at this hour, in this timezone
DIGEST_HOUR: 8
TZ: Etc/UTC
healthcheck:
test: curl -sf -m 4 http://localhost:3000/share/healthcheck -o /dev/null || exit 1
start_period: 10s
timeout: 5s