commit c18b75796b242ef311ff7a53d69b99cdcaf00ec4 Author: Andrew Tomaka Date: Wed Jul 5 21:03:25 2017 -0400 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03bd412 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.env diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ec5ad8a --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +deploy: validate + scp ./*.env 192.168.1.20:/home/atomaka/docker + scp ./docker-compose.yml 192.168.1.20:/home/atomaka/docker + ssh 192.168.1.20 "cd /home/atomaka/docker && docker-compose up -d" + +validate: + docker-compose config > /dev/null diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a6b3e90 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,141 @@ +version: '2' + +services: + plex: + image: linuxserver/plex + container_name: plex + network_mode: host + restart: always + environment: + VERSION: latest + PUID: 0 + PGID: 0 + volumes: + - "/mnt/data/docker/plex/config:/config" + - "/mnt/media/series:/data/tvshows" + - "/mnt/media/movies:/data/movies" + - "/etc/localtime:/etc/localtime:ro" + plexpy: + image: linuxserver/plexpy + container_name: plexpy + restart: always + volumes: + - "/mnt/data/docker/plexpy/config:/config" + - "/mnt/data/docker/plex/config/Library/Application\ Support/Plex\ Media\ Server/Logs:/logs:ro" + - "/etc/localtime:/etc/localtime:ro" + environment: + PUID: 0 + PGID: 0 + ports: + - "8181:8181" + plexrequests: + image: linuxserver/plexrequests + container_name: plexrequests + restart: always + volumes: + - "/mnt/data/docker/plexrequests/config:/config" + - "/etc/localtime:/etc/localtime:ro" + environment: + PUID: 0 + PGID: 0 + ports: + - "3000:3000" + sabnzdb: + image: linuxserver/sabnzbd + container_name: sabnzbd + restart: always + volumes: + - "/mnt/data/docker/sabnzdb/config:/config" + - "/mnt/data/downloads:/data" + - "/etc/localtime:/etc/localtime:ro" + environment: + PUID: 0 + PGID: 0 + ports: + - "8081:8080" + - "9090:9090" + sonarr: + image: linuxserver/sonarr + container_name: sonarr + restart: always + ports: + - "8989:8989" + environment: + PUID: 0 + PGID: 0 + volumes: + - "/mnt/data/docker/sonarr/config:/config" + - "/mnt/data/downloads:/data" + - "/mnt/data/downloads:/downloads" + - "/mnt/media/series/:/media" + - "/etc/localtime:/etc/localtime:ro" + radarr: + image: linuxserver/radarr + container_name: radarr + restart: always + ports: + - "7878:7878" + environment: + PUID: 0 + PGID: 0 + volumes: + - "/mnt/data/docker/radarr/config:/config" + - "/mnt/data/downloads:/data" + - "/mnt/media/movies/:/media" + - "/etc/localtime:/etc/localtime:ro" + muximux: + image: linuxserver/muximux + container_name: muximux + restart: always + ports: + - "8082:80" + volumes: + - "/mnt/data/docker/muximux/config:/config" + - "/etc/localtime:/etc/localtime:ro" + duckdns: + image: linuxserver/duckdns + container_name: duckdns + restart: always + environment: + PUID: 0 + PGID: 0 + env_file: + - duckdns.env + volumes: + - "/etc/localtime:/etc/localtime:ro" + ha: + image: homeassistant/home-assistant:latest + container_name: ha + restart: always + ports: + - "8123:8123" + volumes: + - "/etc/localtime:/etc/localtime:ro" + - "/mnt/data/docker/ha/config:/config" + links: + - mqtt + portainer: + image: portainer/portainer + container_name: portainer + restart: always + ports: + - "9101:9000" + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + - "/mnt/data/docker/portainer:/data" + mqtt: + image: matteocollina/mosca + container_name: mqtt + restart: always + ports: + - 1883:1883 + mqttbridge: + image: stjohnjohnson/smartthings-mqtt-bridge + container_name: mqttbridge + restart: always + volumes: + - "/mnt/data/docker/mqttbridge/config:/config" + ports: + - 8080:8080 + links: + - mqtt diff --git a/duckdns.env.sample b/duckdns.env.sample new file mode 100644 index 0000000..6b12920 --- /dev/null +++ b/duckdns.env.sample @@ -0,0 +1,2 @@ +export TOKEN= +export SUBDOMAINS=