Wiedza docker-compose

U

Usunięty użytkownik pigers

Guest
Instalacja i konfiguracja zestawu:
docker-compose dla mediów vi docker-compose.yml
Kod:
version: '3.3'
services:
    portainer-ce:
        ports:
            - '9000:9000'
        container_name: portainer
        volumes:
            - '/var/run/docker.sock:/var/run/docker.sock'
            - 'portainer_config:/data'
        restart: always
        image: portainer/portainer-ce
    qbittorrent:
        container_name: qbittorrent
        environment:
            - PUID=${apps_puid}
            - PGID=${apps_guid}
            - TZ=${apps_timezone}
            - WEBUI_PORT=${qbitorrent_port}
        ports:
            - '6881:6881'
            - '6881:6881/udp'
            - '${qbitorrent_port}:9092'
        volumes:
            - 'qbittorrent_config:/config'
            - '${download_path}:/downloads'
        restart: ${apps_restartpolicy}
        image: linuxserver/qbittorrent
    radarr:
        container_name: radarr
        environment:
            - PUID=${apps_puid}
            - PGID=${apps_guid}
            - TZ=${apps_timezone}
        ports:
            - '${radarr_port}:7878'
        volumes:
            - 'radarr_config:/config'
            - '${radarr_movies}:/movies'
            - '${download_path}:/downloads'
        restart: ${apps_restartpolicy}
        image: linuxserver/radarr
    sonarr_anime:
        container_name: sonarr_anime
        environment:
            - PUID=${apps_puid}
            - PGID=${apps_guid}
            - TZ=${apps_timezone}
        ports:
            - '${sonarranime_port}:8989'
        volumes:
            - 'sonarr_config_anime:/config'
            - '${sonarranime_folder}:/data'
            - '${download_path}:/downloads'
        restart: ${apps_restartpolicy}
        image: 'linuxserver/sonarr:develop'
    sonarr_series:
        container_name: sonarr_series
        environment:
            - PUID=${apps_puid}
            - PGID=${apps_guid}
            - TZ=${apps_timezone}
        ports:
            - '${sonarrseries_port}:8989'
        volumes:
            - 'sonarr_config_series:/config'
            - '${sonarrseries_folder}:/data'
        restart: ${apps_restartpolicy}
        image: 'linuxserver/sonarr:develop'
    prowlarr:
        container_name: prowlarr
        environment:
            - PUID=${apps_puid}
            - PGID=${apps_guid}
            - TZ=${apps_timezone}
        ports:
            - '${prowlarr_port}:9696'
        volumes:
            - 'prowlarr_config:/config'
        restart: ${apps_restartpolicy}
        image: 'linuxserver/prowlarr:develop'
    emby:
        container_name: emby_server
        environment:
            - PUID=${apps_puid}
            - PGID=${apps_guid}
            - TZ=${apps_timezone}
        ports:
            - '${emby_port}:8096'
        volumes:
            - 'emby_config:/config'
            - '${emby_folder1}:/data/movies'
            - '${emby_folder2}:/data/series'
            - '${emby_folder3}:/data/anime'
        devices:
            - '/dev/dri:/dev/dri'
        restart: ${apps_restartpolicy}
        image: linuxserver/emby
    jellyseer:
        container_name: jellyseer
        environment:
            - PUID=${apps_puid}
            - PGID=${apps_guid}
            - LOG_LEVEL=debug
            - JELLYFIN_TYPE=emby
            - TZ=${apps_timezone}
        ports:
            - '${jellyseer_port}:5055'
        volumes:
            - 'jellyseer_config:/app/config'
        restart: ${apps_restartpolicy}
        image: fallenbagel/jellyseerr:latest
volumes:
    portainer_config:
        driver: local
    qbittorrent_config:
        driver: local
    radarr_config:
        driver: local
    sonarr_config_anime:
        driver: local
    sonarr_config_series:
        driver: local
    prowlarr_config:
        driver: local
    emby_config:
        driver: local
    jellyseer_config:
        driver: local

plik z ustawieniami vi .env
Kod:
########################ustawienia kontenerow##################################
# primary user ID -> id -u
apps_puid=1000
# primary group ID -> id -g
apps_guid=1000
# should container be up after reboot ?  https://docs.docker.com/config/containers/start-containers-automatically/
apps_restartpolicy=unless-stopped
# all applications timezone https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
apps_timezone=Europe/Warsaw
########################pobieranie torrent##################################
#qbitorrent webport - https://hub.docker.com/r/linuxserver/qbittorrent
qbitorrent_port=9092
#path where downloaded data will be https://hub.docker.com/r/linuxserver/qbittorrent
download_path=/media/mmedia/Downloads
#######################################################################
#radarr web port https://hub.docker.com/r/linuxserver/radarr
radarr_port=7878
#path where movies are residing
radarr_movies=/media/mmedia/Filmy
#######################sonarr seriale#######################################
#sonarr for tv series webport https://hub.docker.com/r/linuxserver/sonarr
sonarrseries_port=8998
#sonarr for anime video's location
sonarranime_folder=/media/mmedia/Anime
########################sonarr anime######################################
#sonarr for anime webport https://hub.docker.com/r/linuxserver/sonarr
sonarranime_port=8999
#sonarr for tv series video location
sonarrseries_folder=/media/mmedia/Seriale
##########################indexer########################################
#prowlarr web port https://hub.docker.com/r/linuxserver/prowlarr
prowlarr_port=9696
##########################emby#########################################
#emby port https://hub.docker.com/r/linuxserver/emby
emby_port=8096
#emby folders with data
emby_folder1=/media/mmedia/Anime
emby_folder2=/media/mmedia/Seriale
emby_folder3=/media/mmedia/Filmy
##########################nadzorca#######################################
#jellyseer port https://hub.docker.com/r/fallenbagel/jellyseerr
jellyseer_port=5056
 
  • Lubię to
Reakcje: jerry1333
Aktualizacja zestawu:
zatrzymanie całego zestawu
docker compose stop
usunięcie (wiem , brzmi strasznie)
docker compose rm -f
pobranie nowych wersji obrazów
docker compose pull
odpalenie zestawu
docker compose up -d
 
Aktualizacja zestawu:
zatrzymanie całego zestawu
docker-compose stop
usunięcie (wiem , brzmi strasznie)
docker-compose rm -f
pobranie nowych wersji obrazów
docker-compose pull
odpalenie zestawu
docker-compose up -d
A samo
Bash:
docker-compose pull
docker-compose up -d --force-recreate
nie wystarcza? Nie miałem do tej pory żadnych problemów z takim zestawem :)
 
Ta, nic lepszego nie chciało mi się szukać :D
YAML:
version: "3.8"
services:
  unifi-controller:
    container_name: unifi-controller
    dns:
      - 10.11.12.60
      - 10.11.12.51
    environment:
      - PUID=0
      - PGID=0
      - MEM_LIMIT=1024M
    hostname: unifi
    image: linuxserver/unifi-controller:latest
    networks:
      qnet-static:
        ipv4_address: 10.11.12.59
    ports:
      - 10001:10001/udp
      - 1900:1900/udp
      - 3478:3478/udp
      - 5514:5514/udp
      - 6789:6789/tcp
      - 8080:8080/tcp
      - 8443:8443/tcp
      - 8843:8843/tcp
      - 8880:8880/tcp
    restart: always
    volumes:
      - /share/Container/unifi-controller/_data:/config
networks:
  qnet-static:
    external: true
No i wcześniej trzeba te sieci zdefiniować:
Bash:
docker network create \
-d qnet \
--ipam-driver=qnet \
--ipam-opt=iface=qvs0 \
qnet-dhcp

docker network create \
-d qnet \
--ipam-driver=qnet \
--ipam-opt=iface=qvs0 \
--subnet=10.11.12.0/24 \
--gateway=10.11.12.51 \
qnet-static
 
docker compose --project-directory /exploit/scripts/tools/docker/games_stack/ --file /exploit/scripts/tools/docker/games_stack/docker-compose.yml up -d
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. Portainer
  2. unifi
  3. emby
  4. compose
  5. Portainer instalacja
  6. radarr
  7. qbittorrent docker
  8. docker-compose
  9. instalacja portainer
  10. Docker Hub
  11. sonarr
  12. qBitorrent
  13. docker
  14. aktualizacja docker