diff --git a/centos7.sh b/centos7.sh deleted file mode 100644 index 26869ac..0000000 --- a/centos7.sh +++ /dev/null @@ -1,7 +0,0 @@ - -docker run -d --name centos7 \ --ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ ---restart always \ ---privileged \ ---entrypoint=/usr/sbin/init \ -registry.casjay.in/latest/centos:centos7 \ No newline at end of file diff --git a/couchpotato.sh b/couchpotato.sh deleted file mode 100644 index f4b64c4..0000000 --- a/couchpotato.sh +++ /dev/null @@ -1,12 +0,0 @@ -mkdir -p /var/lib/docker/storage/couchpotato/transmission-daemon/{etc,watch,downloads} && chmod -Rf 777 /var/lib/docker/storage/couchpotato/transmission-daemon - -docker run -d --name=transmission-couchpotato \ ---restart always \ --v /var/lib/docker/storage/couchpotato/transmission-daemon/etc:/config \ --v /var/lib/docker/storage/couchpotato/transmission-daemon/downloads:/downloads \ --v /var/lib/docker/storage/couchpotato/transmission-daemon/watch:/watch \ --v /mnt/torrents:/mnt/torrents \ --p 9091:9091 \ --p 51413:51413 \ --p 51413:51413/udp --restart=always \ -registry.casjay.in/latest/transmission:latest diff --git a/daapd.sh b/daapd.sh deleted file mode 100644 index 3cf1826..0000000 --- a/daapd.sh +++ /dev/null @@ -1,9 +0,0 @@ -mkdir -p /var/lib/docker/storage/daapd/etc && chmod -Rf 777 /var/lib/docker/storage/daapd - -docker run -d \ ---name=daapd \ ---hostname daapd \ ---net=host \ --v /var/lib/docker/storage/daapd/etc:/config \ --v /mnt/media/Music:/music \ -registry.casjay.in/latest/daapd:latest \ No newline at end of file diff --git a/emby.sh b/emby.sh deleted file mode 100644 index 4cf98a5..0000000 --- a/emby.sh +++ /dev/null @@ -1,10 +0,0 @@ -mkdir -p /var/lib/docker/storage/emby/ && chmod -Rf 777 /var/lib/docker/storage/emby - -docker run -d \ ---restart always \ ---name emby \ ---volume /var/lib/docker/storage/emby:/config \ ---volume /mnt/media:/mnt/media \ ---publish 8096:8096 \ ---publish 8920:8920 \ -registry.casjay.in/latest/embyserver:latest diff --git a/gitea.sh b/gitea.sh deleted file mode 100644 index 293564b..0000000 --- a/gitea.sh +++ /dev/null @@ -1,9 +0,0 @@ -mkdir -p /var/lib/docker/storage/gitea && chmod -Rf 777 /var/lib/docker/storage/gitea - -docker run -d --name gitea \ ---privileged \ --v /var/lib/docker/storage/gitea:/data \ --p 127.0.0.1:3000:3000 \ --p 7822:7822 \ ---restart=always \ -registry.casjay.in/latest/gitea:latest diff --git a/gitlab-ce-runner.sh b/gitlab-ce-runner.sh deleted file mode 100644 index d6768a5..0000000 --- a/gitlab-ce-runner.sh +++ /dev/null @@ -1,6 +0,0 @@ -mkdir -p /var/lib/docker/storage/gitlab/runner/config && chmod -Rf 777 /var/lib/docker/storage/gitlab/runner/config - -docker run -d --name gitlab-runner --restart always \ --v /var/lib/docker/storage/gitlab/runner/config:/etc/gitlab-runner \ --v /var/run/docker.sock:/var/run/docker.sock \ -registry.casjay.in/latest/gitlab-runner:latest diff --git a/gitlab-ce.sh b/gitlab-ce.sh deleted file mode 100644 index bf58c95..0000000 --- a/gitlab-ce.sh +++ /dev/null @@ -1,15 +0,0 @@ -mkdir -p mkdir -p /var/lib/docker/storage/gitlab/{config,logs,data} && chmod -Rf 777 /var/lib/docker/storage/gitlab - -docker run -d \ ---name gitlab \ ---privileged \ ---hostname gitlab \ ---publish 3443:443 \ ---publish 3001:80 \ ---publish 7822:22 \ ---restart always \ ---volume /var/lib/docker/storage/gitlab/config:/etc/gitlab \ ---volume /var/lib/docker/storage/gitlab/logs:/var/log/gitlab \ ---volume /var/lib/docker/storage/gitlab/data:/var/opt/gitlab \ ---volume /etc/letsencrypt:/etc/letsencrypt \ -registry.casjay.in/latest/gitlab-ce:latest diff --git a/headphones.sh b/headphones.sh deleted file mode 100644 index 00c4480..0000000 --- a/headphones.sh +++ /dev/null @@ -1,12 +0,0 @@ -mkdir -p /var/lib/docker/storage/headphones/transmission-daemon/{etc,watch,downloads} && chmod -Rf 777 /var/lib/docker/storage/headphones/transmission-daemon - -docker run -d --name=transmission-headphones \ ---restart always \ --v /var/lib/docker/storage/headphones/transmission-daemon/etc:/config \ --v /var/lib/docker/storage/headphones/transmission-daemon/downloads:/downloads \ --v /var/lib/docker/storage/headphones/transmission-daemon/watch:/watch \ --v /mnt/torrents:/mnt/torrents \ --p 9092:9091 -p 51414:51413 \ --p 51414:51413/udp \ -registry.casjay.in/latest/transmission:latest - diff --git a/home-assistant.sh b/home-assistant.sh deleted file mode 100644 index e0fedba..0000000 --- a/home-assistant.sh +++ /dev/null @@ -1,14 +0,0 @@ -mkdir -p /var/lib/docker/storage/hass && chmod -Rf 777 /var/lib/docker/storage/hass - -docker run -d --name home-assistant \ ---restart=always \ ---net=host --privileged -itd \ --v /var/lib/docker/storage/hass:/config \ --v /dev/bus/usb:/dev/bus/usb \ --v /var/run/dbus:/var/run/dbus \ --v /dev:/dev \ --e variable=TZ -e value=America/New_York \ ---device /dev/ttyACM0 \ ---cap-add=SYS_ADMIN \ ---cap-add=NET_ADMIN \ -registry.casjay.in/latest/home-assistant:latest diff --git a/ifconfig.co.sh b/ifconfig.co.sh deleted file mode 100644 index 4b89dfb..0000000 --- a/ifconfig.co.sh +++ /dev/null @@ -1,7 +0,0 @@ - -docker run \ ---detach \ ---name ifconfig \ --p 127.0.0.1:85:8080 \ ---restart=always \ -mpolden/echoip echoip -p -H X-Forwarded-For diff --git a/jenkins.sh b/jenkins.sh deleted file mode 100644 index f9ff393..0000000 --- a/jenkins.sh +++ /dev/null @@ -1,10 +0,0 @@ -mkdir -p /var/lib/docker/storage/jenkins && chmod -Rf 777 /var/lib/docker/storage/jenkins - -docker run -d \ ---privileged \ ---name jenkins \ ---restart always \ --v /var/lib/docker/storage/jenkins:/var/jenkins_home \ --p 127.0.0.1:3002:8080 \ --p 50000:50000 \ -registry.casjay.in/latest/jenkins:latest diff --git a/mariadb.sh b/mariadb.sh deleted file mode 100644 index b82a2e0..0000000 --- a/mariadb.sh +++ /dev/null @@ -1,8 +0,0 @@ -mkdir -p /var/lib/docker/storage/mariadb && chmod -Rf 777 /var/lib/docker/storage/mariadb - -docker run -d \ ---restart always \ ---name mariadb \ --p 3306:3306 \ --v /var/lib/docker/storage/mariadb:/var/lib/mysql \ -registry.casjay.in/latest/mariadb:latest diff --git a/mattermost-webrtc.sh b/mattermost-webrtc.sh deleted file mode 100644 index afeb4ae..0000000 --- a/mattermost-webrtc.sh +++ /dev/null @@ -1,8 +0,0 @@ -docker run -d \ ---name mattermost-webrtc \ ---restart=always \ --p 7088:7088 \ --p 7089:7089 \ --p 8188:8188 \ --p 8189:8189 \ -mattermost/webrtc:latest \ No newline at end of file diff --git a/mongodb.sh b/mongodb.sh deleted file mode 100644 index 50dae48..0000000 --- a/mongodb.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -mkdir -p /var/lib/docker/storage/mongodb/ && chmod -Rf 777 /var/lib/docker/storage/mongodb - -sudo docker run -d \ ---name=mongodb \ --p 27017:27017 \ --v /var/lib/docker/storage/mongodb/mongodb:/data/db \ --e TZ=America/New_York \ ---restart unless-stopped \ -mongo:latest diff --git a/musicbrainz.sh b/musicbrainz.sh deleted file mode 100644 index 35a97bc..0000000 --- a/musicbrainz.sh +++ /dev/null @@ -1,12 +0,0 @@ -mkdir -p /var/lib/docker/storage/musicbrainz/{etc,data} && chmod -Rf 777 /var/lib/docker/storage/musicbrainz - -docker run -d \ ---name=musicbrainz \ ---restart always \ --v /var/lib/docker/storage/musicbrainz/etc:/config \ --v /var/lib/docker/storage/musicbrainz/data:/data \ --e BRAINZCODE=SQYwY97CjT54T9WyUa8pRQYOpoUmMa2d3fsLIzKE \ --e TZ=America/New_York \ --v /etc/letsencrypt:/etc/letsencrypt \ --p 5000:5000 \ -registry.casjay.in/latest/musicbrainz:latest diff --git a/nginx-php.sh b/nginx-php.sh deleted file mode 100644 index 983fb50..0000000 --- a/nginx-php.sh +++ /dev/null @@ -1,14 +0,0 @@ -#Lets setup the domain -DOM= -mkdir -p /var/lib/docker/storage/nginx/$DOM && chmod -Rf 777 /var/lib/docker/storage/nginx/$DOM - -#Only allow local as we will use a proxy -docker run -d \ ---restart always \ ---name $DOM \ --v /var/lib/docker/storage/nginx/$DOM:/var/www/html \ --p 127.0.0.1:30000:80 \ --p 127.0.0.1:30050:443 \ --e 'WEBROOT=/var/www/html' \ --e 'DOMAIN=$DOM' \ -richarvey/nginx-php-fpm \ No newline at end of file diff --git a/pgsql.sh b/pgsql.sh deleted file mode 100644 index 3cea2ea..0000000 --- a/pgsql.sh +++ /dev/null @@ -1,8 +0,0 @@ -mkdir -p /var/lib/docker/storage/postgres && chmod -Rf 777 /var/lib/docker/storage/postgres - -docker run -d \ ---name postgres \ ---restart=always \ --p 5432:5432 \ --v /var/lib/docker/storage/postgres:/var/lib/postgresql/data \ -registry.casjay.in/latest/postgres:latest diff --git a/plex.sh b/plex.sh deleted file mode 100644 index 07ed5a9..0000000 --- a/plex.sh +++ /dev/null @@ -1,12 +0,0 @@ -mkdir -p /var/lib/docker/storage/plex && chmod -Rf 777 /var/lib/docker/storage/plex - -docker run \ ---restart=always \ ---name=plex \ ---net=host \ --e VERSION=latest \ --e TZ=America/New_York \ --v /var/lib/docker/storage/plex:/config \ --v /mnt/media:/data \ --v /tmp:/transcode \ -registry.casjay.in/latest/plex:latest diff --git a/portainer.sh b/portainer.sh deleted file mode 100644 index b451d5d..0000000 --- a/portainer.sh +++ /dev/null @@ -1,8 +0,0 @@ -mkdir -p /var/lib/docker/storage/portainer && chmod -Rf 777 /var/lib/docker/storage/portainer - -docker run -d -p 127.0.0.1:9010:9000 \ ---restart always \ ---name portainer \ --v /var/run/docker.sock:/var/run/docker.sock \ --v /var/lib/docker/storage/portainer:/data \ -portainer/portainer diff --git a/prosody.sh b/prosody.sh deleted file mode 100644 index 8fc86a1..0000000 --- a/prosody.sh +++ /dev/null @@ -1,21 +0,0 @@ -mkdir -p /var/lib/docker/storage/prosody/{data,etc,logs,modules/community,modules/custom} && chmod -Rf 777 /var/lib/docker/storage/prosody - -docker run -d \ ---restart always \ ---name prosody \ --p 5222:5222 \ --p 8021:80 \ --p 8022:443 \ --p 5269:5269 \ --p 127.0.0.1:5347:5347 \ --e LOCAL=root \ --e DOMAIN=casjay.in \ --e PASSWORD=xmpppassword \ --v /var/lib/docker/storage/prosody/etc:/etc/prosody \ --v /var/lib/docker/storage/prosody/logs:/var/log/prosody \ --v /var/lib/docker/storage/prosody/data:/var/lib/prosody \ --v /var/lib/docker/storage/prosody/modules/community:/usr/lib/modules-community \ --v /var/lib/docker/storage/prosody/modules/custom:/usr/lib/prosody/modules-custom \ --v /etc/letsencrypt/live/domain/fullchain.pem:/etc/prosody/certs/casjay.in.crt:ro \ --v /etc/letsencrypt/live/domain/privkey.pem:/etc/prosody/certs/casjay.in.key:ro \ -unclev/prosody-docker-extended:stable \ No newline at end of file diff --git a/registry-web.sh b/registry-web.sh deleted file mode 100644 index 4b54af6..0000000 --- a/registry-web.sh +++ /dev/null @@ -1,19 +0,0 @@ -mkdir -p /var/lib/docker/storage/registry-web && chmod -Rf 777 /var/lib/docker/storage/registry-web - -docker run --name registry-web \ --d --restart=always \ --e ENV_DOCKER_REGISTRY_HOST=registry.casjay.in \ --e ENV_DOCKER_REGISTRY_PORT=5000 \ --e ENV_REGISTRY_PROXY_FQDN=registry.casjay.in \ --e ENV_REGISTRY_PROXY_PORT=443 \ --e ENV_DEFAULT_REPOSITORIES_PER_PAGE=50 \ --e ENV_MODE_BROWSE_ONLY=false \ --e ENV_DEFAULT_TAGS_PER_PAGE=20 \ --e ENV_DOCKER_REGISTRY_USE_SSL=1 \ --e ENV_USE_SSL=1 \ --v /var/lib/docker/storage/registry-web:/var/lib/registry \ --v /etc/ssl/CA/CasjaysDev/certs/localhost.crt:/etc/apache2/server.crt:ro \ --v /etc/ssl/CA/CasjaysDev/private/localhost.key:/etc/apache2/server.key:ro \ --p 7080:80 \ --p 7081:443 \ -konradkleine/docker-registry-frontend:v2 diff --git a/registry.sh b/registry.sh deleted file mode 100644 index d4a27bd..0000000 --- a/registry.sh +++ /dev/null @@ -1,12 +0,0 @@ -mkdir -p /var/lib/docker/storage/registry && chmod -Rf 777 /var/lib/docker/storage/registry - -docker run -d \ --p 5000:5000 \ ---restart=always \ ---name registry \ --v /var/lib/docker/storage/registry:/var/lib/registry \ --e SEARCH_BACKEND=sqlalchemy \ --v /etc/ssl/CA/CasjaysDev:/etc/ssl/CA/CasjaysDev \ --e REGISTRY_HTTP_TLS_CERTIFICATE=/etc/ssl/CA/CasjaysDev/certs/localhost.crt \ --e REGISTRY_HTTP_TLS_KEY=/etc/ssl/CA/CasjaysDev/private/localhost.key \ -registry diff --git a/rocketchat.sh b/rocketchat.sh deleted file mode 100644 index fd1384e..0000000 --- a/rocketchat.sh +++ /dev/null @@ -1,9 +0,0 @@ -mkdir /var/lib/docker/storage/rocketchat - -docker run -d --name rocketchat \ ---restart always --p 127.0.0.1:39520:3000 -v \ -/var/lib/docker/storage/rocketchat:/app \ ---env ROOT_URL=http://localhost \ ---env MONGO_URL=mongodb://mymongourl/mydb \ -rocket.chat diff --git a/rsyslog.sh b/rsyslog.sh deleted file mode 100644 index 21c4a4d..0000000 --- a/rsyslog.sh +++ /dev/null @@ -1,13 +0,0 @@ -mkdir -p /var/lib/docker/storage/rsyslog/elastic && chmod -Rf 777 /var/lib/docker/storage/rsyslog - -docker run -d \ ---name rsyslog \ ---hostname syslogs \ ---restart always \ ---privileged \ --p 514:514 \ --p 514:514/udp \ --p 5601:5601 \ --v /etc/localtime:/etc/localtime:ro \ --v /var/lib/docker/storage/rsyslog/elastic:/var/lib/elasticsearch \ -registry.casjay.in/latest/rsyslog:latest diff --git a/samba-dc.sh b/samba-dc.sh deleted file mode 100644 index 08ebbc8..0000000 --- a/samba-dc.sh +++ /dev/null @@ -1,34 +0,0 @@ -mkdir -p /var/lib/docker/storage/samba/{config,data} - -docker run -t -i \ ---restart always \ --e "DOMAIN=CASJAY.NET" \ --e "DOMAINPASS=80@Malak87" \ --e "DNSFORWARDER=1.1.1.1" \ --e "HOSTIP=10.0.0.250" \ --p 10.0.0.250:53:53 \ --p 10.0.0.250:53:53/udp \ --p 10.0.0.250:88:88 \ --p 10.0.0.250:88:88/udp \ --p 10.0.0.250:135:135 \ --p 10.0.0.250:137-138:137-138/udp \ --p 10.0.0.250:139:139 \ --p 10.0.0.250:389:389 \ --p 10.0.0.250:389:389/udp \ --p 10.0.0.250:445:445 \ --p 10.0.0.250:464:464 \ --p 10.0.0.250:464:464/udp \ --p 10.0.0.250:636:636 \ --p 10.0.0.250:1024-1044:1024-1044 \ --p 10.0.0.250:3268-3269:3268-3269 \ --v /etc/localtime:/etc/localtime:ro \ --v /var/lib/docker/storage/samba/data/:/var/lib/samba \ --v /var/lib/docker/storage/samba/config/samba:/etc/samba/external \ ---dns-search casjay.net \ ---dns 10.0.0.250 \ ---dns 1.1.1.1 \ ---add-host dc.casjay.net:10.0.0.250 \ --h localdc \ ---name samba \ ---privileged \ -nowsci/samba-domain diff --git a/scripts/centos7.sh b/scripts/centos7.sh new file mode 100755 index 0000000..3263e41 --- /dev/null +++ b/scripts/centos7.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +docker run -d --name centos7 \ + -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ + --restart always \ + --privileged \ + --entrypoint=/usr/sbin/init \ + registry.casjay.in/latest/centos:centos7 diff --git a/scripts/couchpotato.sh b/scripts/couchpotato.sh new file mode 100755 index 0000000..e6ce91a --- /dev/null +++ b/scripts/couchpotato.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/couchpotato/transmission-daemon/{etc,watch,downloads} && + chmod -Rf 777 /var/lib/docker/storage/couchpotato/transmission-daemon + +docker run -d --name=transmission-couchpotato \ + --restart always \ + -v /var/lib/docker/storage/couchpotato/transmission-daemon/etc:/config \ + -v /var/lib/docker/storage/couchpotato/transmission-daemon/downloads:/downloads \ + -v /var/lib/docker/storage/couchpotato/transmission-daemon/watch:/watch \ + -v /mnt/torrents:/mnt/torrents \ + -p 9091:9091 \ + -p 51413:51413 \ + -p 51413:51413/udp --restart=always \ + registry.casjay.in/latest/transmission:latest diff --git a/scripts/daapd.sh b/scripts/daapd.sh new file mode 100755 index 0000000..f73a1fa --- /dev/null +++ b/scripts/daapd.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/daapd/etc && + chmod -Rf 777 /var/lib/docker/storage/daapd + +docker run -d \ + --name=daapd \ + --hostname daapd \ + --net=host \ + -v /var/lib/docker/storage/daapd/etc:/config \ + -v /mnt/media/Music:/music \ + registry.casjay.in/latest/daapd:latest diff --git a/scripts/emby.sh b/scripts/emby.sh new file mode 100755 index 0000000..8c92af1 --- /dev/null +++ b/scripts/emby.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/emby/ && + chmod -Rf 777 /var/lib/docker/storage/emby + +docker run -d \ + --restart always \ + --name emby \ + --volume /var/lib/docker/storage/emby:/config \ + --volume /mnt/media:/mnt/media \ + --publish 8096:8096 \ + --publish 8920:8920 \ + registry.casjay.in/latest/embyserver:latest diff --git a/scripts/gitea.sh b/scripts/gitea.sh new file mode 100755 index 0000000..b779f9b --- /dev/null +++ b/scripts/gitea.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/gitea && + chmod -Rf 777 /var/lib/docker/storage/gitea + +docker run -d --name gitea \ + --privileged \ + -v /var/lib/docker/storage/gitea:/data \ + -p 127.0.0.1:3000:3000 \ + -p 7822:7822 \ + --restart=always \ + registry.casjay.in/latest/gitea:latest diff --git a/scripts/gitlab-ce-runner.sh b/scripts/gitlab-ce-runner.sh new file mode 100755 index 0000000..603ec89 --- /dev/null +++ b/scripts/gitlab-ce-runner.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/gitlab/runner/config && + chmod -Rf 777 /var/lib/docker/storage/gitlab/runner/config + +docker run -d --name gitlab-runner --restart always \ + -v /var/lib/docker/storage/gitlab/runner/config:/etc/gitlab-runner \ + -v /var/run/docker.sock:/var/run/docker.sock \ + registry.casjay.in/latest/gitlab-runner:latest diff --git a/scripts/gitlab-ce.sh b/scripts/gitlab-ce.sh new file mode 100755 index 0000000..45addd4 --- /dev/null +++ b/scripts/gitlab-ce.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +mkdir -p mkdir -p /var/lib/docker/storage/gitlab/{config,logs,data} && + chmod -Rf 777 /var/lib/docker/storage/gitlab + +docker run -d \ + --name gitlab \ + --privileged \ + --hostname gitlab \ + --publish 3443:443 \ + --publish 3001:80 \ + --publish 7822:22 \ + --restart always \ + --volume /var/lib/docker/storage/gitlab/config:/etc/gitlab \ + --volume /var/lib/docker/storage/gitlab/logs:/var/log/gitlab \ + --volume /var/lib/docker/storage/gitlab/data:/var/opt/gitlab \ + --volume /etc/letsencrypt:/etc/letsencrypt \ + registry.casjay.in/latest/gitlab-ce:latest diff --git a/scripts/headphones.sh b/scripts/headphones.sh new file mode 100755 index 0000000..d054964 --- /dev/null +++ b/scripts/headphones.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/headphones/transmission-daemon/{etc,watch,downloads} && + chmod -Rf 777 /var/lib/docker/storage/headphones/transmission-daemon + +docker run -d --name=transmission-headphones \ + --restart always \ + -v /var/lib/docker/storage/headphones/transmission-daemon/etc:/config \ + -v /var/lib/docker/storage/headphones/transmission-daemon/downloads:/downloads \ + -v /var/lib/docker/storage/headphones/transmission-daemon/watch:/watch \ + -v /mnt/torrents:/mnt/torrents \ + -p 9092:9091 -p 51414:51413 \ + -p 51414:51413/udp \ + registry.casjay.in/latest/transmission:latest diff --git a/scripts/home-assistant.sh b/scripts/home-assistant.sh new file mode 100755 index 0000000..33e774f --- /dev/null +++ b/scripts/home-assistant.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/hass && + chmod -Rf 777 /var/lib/docker/storage/hass + +docker run -d --name home-assistant \ + --restart=always \ + --net=host --privileged -itd \ + -v /var/lib/docker/storage/hass:/config \ + -v /dev/bus/usb:/dev/bus/usb \ + -v /var/run/dbus:/var/run/dbus \ + -v /dev:/dev \ + -e variable=TZ -e value=America/New_York \ + --device /dev/ttyACM0 \ + --cap-add=SYS_ADMIN \ + --cap-add=NET_ADMIN \ + registry.casjay.in/latest/home-assistant:latest diff --git a/scripts/ifconfig.co.sh b/scripts/ifconfig.co.sh new file mode 100755 index 0000000..8e583b7 --- /dev/null +++ b/scripts/ifconfig.co.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +docker run \ + --detach \ + --name ifconfig \ + -p 127.0.0.1:85:8080 \ + --restart=always \ + mpolden/echoip echoip -p -H X-Forwarded-For diff --git a/scripts/jenkins.sh b/scripts/jenkins.sh new file mode 100755 index 0000000..d2856fc --- /dev/null +++ b/scripts/jenkins.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/jenkins && + chmod -Rf 777 /var/lib/docker/storage/jenkins + +docker run -d \ + --privileged \ + --name jenkins \ + --restart always \ + -v /var/lib/docker/storage/jenkins:/var/jenkins_home \ + -p 127.0.0.1:3002:8080 \ + -p 50000:50000 \ + registry.casjay.in/latest/jenkins:latest diff --git a/scripts/mariadb.sh b/scripts/mariadb.sh new file mode 100755 index 0000000..e45b50d --- /dev/null +++ b/scripts/mariadb.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/mariadb && + chmod -Rf 777 /var/lib/docker/storage/mariadb + +docker run -d \ + --restart always \ + --name mariadb \ + -p 3306:3306 \ + -v /var/lib/docker/storage/mariadb:/var/lib/mysql \ + registry.casjay.in/latest/mariadb:latest diff --git a/scripts/mattermost-webrtc.sh b/scripts/mattermost-webrtc.sh new file mode 100755 index 0000000..58755dd --- /dev/null +++ b/scripts/mattermost-webrtc.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +docker run -d \ + --name mattermost-webrtc \ + --restart=always \ + -p 7088:7088 \ + -p 7089:7089 \ + -p 8188:8188 \ + -p 8189:8189 \ + mattermost/webrtc:latest diff --git a/scripts/mongodb.sh b/scripts/mongodb.sh new file mode 100755 index 0000000..e198aaa --- /dev/null +++ b/scripts/mongodb.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/mongodb/ && + chmod -Rf 777 /var/lib/docker/storage/mongodb + +sudo docker run -d \ + --name=mongodb \ + -p 27017:27017 \ + -v /var/lib/docker/storage/mongodb/mongodb:/data/db \ + -e TZ=America/New_York \ + --restart unless-stopped \ + mongo:latest diff --git a/scripts/musicbrainz.sh b/scripts/musicbrainz.sh new file mode 100755 index 0000000..ae0ebb9 --- /dev/null +++ b/scripts/musicbrainz.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/musicbrainz/{etc,data} && + chmod -Rf 777 /var/lib/docker/storage/musicbrainz + +docker run -d \ + --name=musicbrainz \ + --restart always \ + -v /var/lib/docker/storage/musicbrainz/etc:/config \ + -v /var/lib/docker/storage/musicbrainz/data:/data \ + -e BRAINZCODE=SQYwY97CjT54T9WyUa8pRQYOpoUmMa2d3fsLIzKE \ + -e TZ=America/New_York \ + -v /etc/letsencrypt:/etc/letsencrypt \ + -p 5000:5000 \ + registry.casjay.in/latest/musicbrainz:latest diff --git a/scripts/nginx-php.sh b/scripts/nginx-php.sh new file mode 100755 index 0000000..c54fe1c --- /dev/null +++ b/scripts/nginx-php.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# Lets setup the domain +DOM=${1:-$HOSTNAME} +mkdir -p /var/lib/docker/storage/nginx/$DOM && + chmod -Rf 777 /var/lib/docker/storage/nginx/$DOM + +# Only allow local as we will use a proxy +docker run -d \ + --restart always \ + --name $DOM \ + -v /var/lib/docker/storage/nginx/$DOM:/var/www/html \ + -p 127.0.0.1:30000:80 \ + -p 127.0.0.1:30050:443 \ + -e 'WEBROOT=/var/www/html' \ + -e 'DOMAIN=$DOM' \ + richarvey/nginx-php-fpm diff --git a/scripts/pgsql.sh b/scripts/pgsql.sh new file mode 100755 index 0000000..b8e059a --- /dev/null +++ b/scripts/pgsql.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/postgres && + chmod -Rf 777 /var/lib/docker/storage/postgres + +docker run -d \ + --name postgres \ + --restart=always \ + -p 5432:5432 \ + -v /var/lib/docker/storage/postgres:/var/lib/postgresql/data \ + registry.casjay.in/latest/postgres:latest diff --git a/scripts/plex.sh b/scripts/plex.sh new file mode 100755 index 0000000..d197a5a --- /dev/null +++ b/scripts/plex.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/plex && + chmod -Rf 777 /var/lib/docker/storage/plex + +docker run \ + --restart=always \ + --name=plex \ + --net=host \ + -e VERSION=latest \ + -e TZ=America/New_York \ + -v /var/lib/docker/storage/plex:/config \ + -v /mnt/media:/data \ + -v /tmp:/transcode \ + registry.casjay.in/latest/plex:latest diff --git a/scripts/portainer.sh b/scripts/portainer.sh new file mode 100755 index 0000000..36a41ab --- /dev/null +++ b/scripts/portainer.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/portainer && + chmod -Rf 777 /var/lib/docker/storage/portainer + +docker run -d -p 127.0.0.1:9010:9000 \ + --restart always \ + --name portainer \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v /var/lib/docker/storage/portainer:/data \ + portainer/portainer:latest diff --git a/scripts/prosody.sh b/scripts/prosody.sh new file mode 100755 index 0000000..b1fb559 --- /dev/null +++ b/scripts/prosody.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/prosody/{data,etc,logs,modules/community,modules/custom} && + chmod -Rf 777 /var/lib/docker/storage/prosody + +docker run -d \ + --restart always \ + --name prosody \ + -p 5222:5222 \ + -p 8021:80 \ + -p 8022:443 \ + -p 5269:5269 \ + -p 127.0.0.1:5347:5347 \ + -e LOCAL=root \ + -e DOMAIN=casjay.in \ + -e PASSWORD=xmpppassword \ + -v /var/lib/docker/storage/prosody/etc:/etc/prosody \ + -v /var/lib/docker/storage/prosody/logs:/var/log/prosody \ + -v /var/lib/docker/storage/prosody/data:/var/lib/prosody \ + -v /var/lib/docker/storage/prosody/modules/community:/usr/lib/modules-community \ + -v /var/lib/docker/storage/prosody/modules/custom:/usr/lib/prosody/modules-custom \ + -v /etc/letsencrypt/live/domain/fullchain.pem:/etc/prosody/certs/casjay.in.crt:ro \ + -v /etc/letsencrypt/live/domain/privkey.pem:/etc/prosody/certs/casjay.in.key:ro \ + unclev/prosody-docker-extended:stable diff --git a/scripts/registry-web.sh b/scripts/registry-web.sh new file mode 100755 index 0000000..f518def --- /dev/null +++ b/scripts/registry-web.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/registry-web && + chmod -Rf 777 /var/lib/docker/storage/registry-web + +docker run --name registry-web \ + -d --restart=always \ + -e ENV_DOCKER_REGISTRY_HOST=registry.casjay.in \ + -e ENV_DOCKER_REGISTRY_PORT=5000 \ + -e ENV_REGISTRY_PROXY_FQDN=registry.casjay.in \ + -e ENV_REGISTRY_PROXY_PORT=443 \ + -e ENV_DEFAULT_REPOSITORIES_PER_PAGE=50 \ + -e ENV_MODE_BROWSE_ONLY=false \ + -e ENV_DEFAULT_TAGS_PER_PAGE=20 \ + -e ENV_DOCKER_REGISTRY_USE_SSL=1 \ + -e ENV_USE_SSL=1 \ + -v /var/lib/docker/storage/registry-web:/var/lib/registry \ + -v /etc/ssl/CA/CasjaysDev/certs/localhost.crt:/etc/apache2/server.crt:ro \ + -v /etc/ssl/CA/CasjaysDev/private/localhost.key:/etc/apache2/server.key:ro \ + -p 7080:80 \ + -p 7081:443 \ + konradkleine/docker-registry-frontend:v2 diff --git a/scripts/registry.sh b/scripts/registry.sh new file mode 100755 index 0000000..969e9c6 --- /dev/null +++ b/scripts/registry.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/registry && + chmod -Rf 777 /var/lib/docker/storage/registry + +docker run -d \ + -p 5000:5000 \ + --restart=always \ + --name registry \ + -v /var/lib/docker/storage/registry:/var/lib/registry \ + -e SEARCH_BACKEND=sqlalchemy \ + -v /etc/ssl/CA/CasjaysDev:/etc/ssl/CA/CasjaysDev \ + -e REGISTRY_HTTP_TLS_CERTIFICATE=/etc/ssl/CA/CasjaysDev/certs/localhost.crt \ + -e REGISTRY_HTTP_TLS_KEY=/etc/ssl/CA/CasjaysDev/private/localhost.key \ + registry diff --git a/scripts/rocketchat.sh b/scripts/rocketchat.sh new file mode 100755 index 0000000..1704fd1 --- /dev/null +++ b/scripts/rocketchat.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +mkdir /var/lib/docker/storage/rocketchat && + chmod -Rf 777 /var/lib/docker/storage/rocketchat + +docker run -d --name rocketchat \ + --restart always +-p 127.0.0.1:39520:3000 -v \ + /var/lib/docker/storage/rocketchat:/app \ + --env ROOT_URL=http://localhost \ + --env MONGO_URL=mongodb://mymongourl/mydb \ + rocket.chat diff --git a/scripts/rsyslog.sh b/scripts/rsyslog.sh new file mode 100755 index 0000000..66d662a --- /dev/null +++ b/scripts/rsyslog.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/rsyslog/elastic && + chmod -Rf 777 /var/lib/docker/storage/rsyslog + +docker run -d \ + --name rsyslog \ + --hostname syslogs \ + --restart always \ + --privileged \ + -p 514:514 \ + -p 514:514/udp \ + -p 5601:5601 \ + -v /etc/localtime:/etc/localtime:ro \ + -v /var/lib/docker/storage/rsyslog/elastic:/var/lib/elasticsearch \ + registry.casjay.in/latest/rsyslog:latest diff --git a/scripts/samba-dc.sh b/scripts/samba-dc.sh new file mode 100755 index 0000000..7f6e227 --- /dev/null +++ b/scripts/samba-dc.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/samba/{config,data} && + chmod -Rf 777 /var/lib/docker/storage/samba + +docker run -t -i \ + --restart always \ + -e "DOMAIN=CASJAY.NET" \ + -e "DOMAINPASS=80@Malak87" \ + -e "DNSFORWARDER=1.1.1.1" \ + -e "HOSTIP=10.0.0.250" \ + -p 10.0.0.250:53:53 \ + -p 10.0.0.250:53:53/udp \ + -p 10.0.0.250:88:88 \ + -p 10.0.0.250:88:88/udp \ + -p 10.0.0.250:135:135 \ + -p 10.0.0.250:137-138:137-138/udp \ + -p 10.0.0.250:139:139 \ + -p 10.0.0.250:389:389 \ + -p 10.0.0.250:389:389/udp \ + -p 10.0.0.250:445:445 \ + -p 10.0.0.250:464:464 \ + -p 10.0.0.250:464:464/udp \ + -p 10.0.0.250:636:636 \ + -p 10.0.0.250:1024-1044:1024-1044 \ + -p 10.0.0.250:3268-3269:3268-3269 \ + -v /etc/localtime:/etc/localtime:ro \ + -v /var/lib/docker/storage/samba/data/:/var/lib/samba \ + -v /var/lib/docker/storage/samba/config/samba:/etc/samba/external \ + --dns-search casjay.net \ + --dns 10.0.0.250 \ + --dns 1.1.1.1 \ + --add-host dc.casjay.net:10.0.0.250 \ + -h localdc \ + --name samba \ + --privileged \ + nowsci/samba-domain diff --git a/scripts/sickrage.sh b/scripts/sickrage.sh new file mode 100755 index 0000000..ba4a1c0 --- /dev/null +++ b/scripts/sickrage.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/sickrage/transmission-daemon/{etc,watch,downloads} && + chmod -Rf 777 /var/lib/docker/storage/sickrage/transmission-daemon + +docker run -d --name=transmission-sickrage \ + --restart=always \ + -v /var/lib/docker/storage/sickrage/transmission-daemon/etc:/config \ + -v /var/lib/docker/storage/sickrage/transmission-daemon/downloads:/downloads \ + -v /var/lib/docker/storage/sickrage/transmission-daemon/watch:/watch \ + -v /mnt/torrents:/mnt/torrents \ + -p 9093:9091 -p 51415:51413 \ + -p 51415:51413/udp \ + registry.casjay.in/latest/transmission:latest diff --git a/scripts/subsonic.sh b/scripts/subsonic.sh new file mode 100755 index 0000000..b5a81c1 --- /dev/null +++ b/scripts/subsonic.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/airsonic/{music,podcasts,playlists,data} && + chmod -Rf 777 /var/lib/docker/storage/airsonic + +docker run -d \ + --name=airsonic \ + --hostname airsonic \ + --restart=always \ + --privileged \ + -p 4040:4040 \ + -v /var/lib/docker/storage/airsonic/music:/airsonic/music:z \ + -v /var/lib/docker/storage/airsonic/podcasts:/airsonic/podcasts:z \ + -v /var/lib/docker/storage/airsonic/playlists:/airsonic/playlists:z \ + -v /var/lib/docker/storage/airsonic/data:/airsonic/data:z \ + airsonic/airsonic:latest diff --git a/scripts/transmission.sh b/scripts/transmission.sh new file mode 100755 index 0000000..c047453 --- /dev/null +++ b/scripts/transmission.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/transmission-daemon/{etc,watch,downloads} && + chmod -Rf 777 /var/lib/docker/storage/transmission-daemon + +docker run -d --name=transmission \ + --restart=always \ + -v /var/lib/docker/storage/transmission-daemon/etc:/config \ + -v /var/lib/docker/storage/transmission-daemon/downloads:/downloads \ + -v /var/lib/docker/storage/transmission-daemon/watch:/watch \ + -v /mnt/torrents:/mnt/torrents \ + -p 9091:9091 -p 51415:51413 \ + -p 51413:51413/udp \ + registry.casjay.in/latest/transmission:latest diff --git a/scripts/unrealircd.sh b/scripts/unrealircd.sh new file mode 100755 index 0000000..1f41527 --- /dev/null +++ b/scripts/unrealircd.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +docker run -d \ + --restart always \ + --name ircd \ + -p 6697:6697 \ + -p 7000:7000 \ + -v /etc/letsencrypt/live/domain/fullchain.pem:/home/unreal/unrealircd/conf/ssl/server.cert.pem:ro \ + -v /etc/letsencrypt/live/domain/privkey.pem:/home/unreal/unrealircd/conf/ssl/server.key.pem:ro \ + joelnb/unrealircd:latest diff --git a/scripts/vscoder.sh b/scripts/vscoder.sh new file mode 100755 index 0000000..2294dc9 --- /dev/null +++ b/scripts/vscoder.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/vscoder && + chmod -Rf 777 /var/lib/docker/storage/vscoder + +docker run -d --name vscoder \ + -it --privileged \ + --network host \ + -p 29000:29000 \ + -p 5500:5500 \ + -p 8090:8090 \ + -v "/var/lib/docker/storage/vscoder:/home/coder" \ + -v "/var/lib/docker/storage/vscoder/project:/home/coder/project" \ + codercom/code-server --allow-http --no-auth -p 29000 diff --git a/scripts/zabbix.sh b/scripts/zabbix.sh new file mode 100755 index 0000000..66709ed --- /dev/null +++ b/scripts/zabbix.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +mkdir -p /var/lib/docker/storage/zabbix/{mysql,config,postfix} && + chmod -Rf 777 /var/lib/docker/storage/zabbix + +# docker run -d \ +# --name zabbix \ +# --hostname zabbix \ +# --restart always \ +# --privileged \ +# -p 40080:80 \ +# -p 40081:443 \ +# -p 10051:10051 \ +# --volume /var/lib/docker/storage/zabbix/mysql:/var/lib/mysql \ +# --volume /var/lib/docker/storage/zabbix/config:/etc/zabbix \ +# --volume /var/lib/docker/storage/zabbix/postfix:/etc/postfix \ +# registry.casjay.in/latest/zabbix:4 + +echo ' +docker exec -it -u root zabbix /bin/bash +edit /etc/postfix/main.cf +as it just relays mail through your main server + +sql root user has no password +sql username is zabbix +sql database password is password +zabbix web default user name is Admin, password zabbix + +"https://www.zabbix.com/download?zabbix=4.0&os_distribution=raspbian&os_version=stretch&db=MySQL" +' diff --git a/sickrage.sh b/sickrage.sh deleted file mode 100644 index 9d0228c..0000000 --- a/sickrage.sh +++ /dev/null @@ -1,12 +0,0 @@ -mkdir -p /var/lib/docker/storage/sickrage/transmission-daemon/{etc,watch,downloads} && chmod -Rf 777 /var/lib/docker/storage/sickrage/transmission-daemon - -docker run -d --name=transmission-sickrage \ ---restart=always \ --v /var/lib/docker/storage/sickrage/transmission-daemon/etc:/config \ --v /var/lib/docker/storage/sickrage/transmission-daemon/downloads:/downloads \ --v /var/lib/docker/storage/sickrage/transmission-daemon/watch:/watch \ --v /mnt/torrents:/mnt/torrents \ --p 9093:9091 -p 51415:51413 \ --p 51415:51413/udp \ -registry.casjay.in/latest/transmission:latest - diff --git a/subsonic.sh b/subsonic.sh deleted file mode 100644 index 204b2bb..0000000 --- a/subsonic.sh +++ /dev/null @@ -1,13 +0,0 @@ -mkdir -p /var/lib/docker/storage/airsonic/{music,podcasts,playlists,data} && chmod -Rf 777 /var/lib/docker/storage/airsonic - -docker run -d \ ---name=airsonic \ ---hostname airsonic \ ---restart=always \ ---privileged \ --p 4040:4040 \ --v /var/lib/docker/storage/airsonic/music:/airsonic/music:z \ --v /var/lib/docker/storage/airsonic/podcasts:/airsonic/podcasts:z \ --v /var/lib/docker/storage/airsonic/playlists:/airsonic/playlists:z \ --v /var/lib/docker/storage/airsonic/data:/airsonic/data:z \ -airsonic/airsonic:latest diff --git a/transmission.sh b/transmission.sh deleted file mode 100644 index 88371a4..0000000 --- a/transmission.sh +++ /dev/null @@ -1,11 +0,0 @@ -mkdir -p /var/lib/docker/storage/transmission-daemon/{etc,watch,downloads} && chmod -Rf 777 /var/lib/docker/storage/transmission-daemon - -docker run -d --name=transmission \ ---restart=always \ --v /var/lib/docker/storage/transmission-daemon/etc:/config \ --v /var/lib/docker/storage/transmission-daemon/downloads:/downloads \ --v /var/lib/docker/storage/transmission-daemon/watch:/watch \ --v /mnt/torrents:/mnt/torrents \ --p 9091:9091 -p 51415:51413 \ --p 51413:51413/udp \ -registry.casjay.in/latest/transmission:latest diff --git a/unrealircd.sh b/unrealircd.sh deleted file mode 100644 index afbc584..0000000 --- a/unrealircd.sh +++ /dev/null @@ -1,10 +0,0 @@ - - -docker run -d \ ---restart always \ ---name ircd \ --p 6697:6697 \ --p 7000:7000 \ --v /etc/letsencrypt/live/domain/fullchain.pem:/home/unreal/unrealircd/conf/ssl/server.cert.pem:ro \ --v /etc/letsencrypt/live/domain/privkey.pem:/home/unreal/unrealircd/conf/ssl/server.key.pem:ro \ -joelnb/unrealircd:latest \ No newline at end of file diff --git a/version.txt b/version.txt index ae51a3c..f442c48 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -202210181539-git +202302232338-git diff --git a/vscoder.sh b/vscoder.sh deleted file mode 100644 index bdc6d79..0000000 --- a/vscoder.sh +++ /dev/null @@ -1,11 +0,0 @@ -mkdir -p /var/lib/docker/storage/vscoder && chmod -Rf 777 /var/lib/docker/storage/vscoder - -docker run -d --name vscoder \ --it --privileged \ ---network host \ --p 29000:29000 \ --p 5500:5500 \ --p 8090:8090 \ --v "/var/lib/docker/storage/vscoder:/home/coder" \ --v "/var/lib/docker/storage/vscoder/project:/home/coder/project" \ -codercom/code-server --allow-http --no-auth -p 29000 diff --git a/zabbix.sh b/zabbix.sh deleted file mode 100644 index 983a516..0000000 --- a/zabbix.sh +++ /dev/null @@ -1,26 +0,0 @@ -mkdir -p /var/lib/docker/storage/zabbix/{mysql,config,postfix} && chmod -Rf 777 /var/lib/docker/storage/zabbix - -docker run -d \ ---name zabbix \ ---hostname zabbix \ ---restart always \ ---privileged \ --p 40080:80 \ --p 40081:443 --p 10051:10051 \ ---volume /var/lib/docker/storage/zabbix/mysql:/var/lib/mysql \ ---volume /var/lib/docker/storage/zabbix/config:/etc/zabbix \ ---volume /var/lib/docker/storage/zabbix/postfix:/etc/postfix \ -registry.casjay.in/latest/zabbix:4 - - -docker exec -it -u root zabbix /bin/bash -edit /etc/postfix/main.cf -as it just relays mail through your main server - -sql root user has no password -sql username is zabbix -sql database password is password -zabbix web default user name is Admin, password zabbix - -https://www.zabbix.com/download?zabbix=4.0&os_distribution=raspbian&os_version=stretch&db=MySQL