networks:
  1panel-network:
    external: true
services:
  radarr:
    container_name: radarr
    env_file:
    - ./envs/global.env
    - .env
    environment:
    - PUID=1000
    - PGID=1000
    - UMASK=022
    - TZ=Asia/Shanghai
    image: linuxserver/radarr:5.16.3
    labels:
      createdBy: Apps
    networks:
    - 1panel-network
    ports:
    - ${PANEL_APP_PORT_HTTP}:7878
    restart: always
    volumes:
    - ${RADARR_ROOT_PATH}/config:/config
    - ${RADARR_ROOT_PATH}/movies:/movies
    - ${RADARR_ROOT_PATH}/downloads:/downloads
    - ${CUSTOM_MOUNT_DIRECTORY_1:-./default_mount_1}:${CUSTOM_MOUNT_DIRECTORY_1:-/default_mount_1}
    - ${CUSTOM_MOUNT_DIRECTORY_2:-./default_mount_2}:${CUSTOM_MOUNT_DIRECTORY_2:-/default_mount_2}
    - ${CUSTOM_MOUNT_DIRECTORY_3:-./default_mount_3}:${CUSTOM_MOUNT_DIRECTORY_3:-/default_mount_3}
