39 lines
982 B
YAML
39 lines
982 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
immich-server:
|
|
image: ghcr.io/immich-app/immich-server:release
|
|
container_name: immich_server
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
DB_HOSTNAME: database
|
|
DB_USERNAME: immich
|
|
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
|
|
DB_DATABASE_NAME: immich
|
|
REDIS_HOSTNAME: redis
|
|
|
|
volumes:
|
|
- /mnt/user/photos/immich:/usr/src/app/upload
|
|
|
|
networks:
|
|
- immich_default
|
|
- frontend_net
|
|
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=frontend_net"
|
|
- "traefik.http.routers.immich.rule=Host(`immich.kaleschke.info`)"
|
|
- "traefik.http.routers.immich.entrypoints=websecure"
|
|
- "traefik.http.routers.immich.tls=true"
|
|
- "traefik.http.routers.immich.tls.certresolver=le"
|
|
- "traefik.http.services.immich.loadbalancer.server.port=2283"
|
|
|
|
networks:
|
|
immich_default:
|
|
external: true
|
|
frontend_net:
|
|
external: true |