This commit is contained in:
Andrew Hurley 2022-10-30 15:56:26 +00:00
parent 4bcd33e57b
commit f2e4b095c2
2 changed files with 137 additions and 0 deletions

130
docker-compose.yml Normal file
View File

@ -0,0 +1,130 @@
networks:
local:
internal: false
nextc:
internal: true
volumes:
webtop-config:
plexs-config:
embys-config:
fsync-config:
nextc-config:
nextc-db-config:
services:
webtop:
image: lscr.io/linuxserver/webtop:alpine-mate
restart: unless-stopped
environment:
- PUID=1000
- PGID=1000
- TZ=Australia/Perth
- SUBFOLDER=/ #optional
- KEYBOARD=en-us-qwerty #optional
- TITLE=Webtop #optional
volumes:
- ${BIND?Err}webtop-config:/config
ports:
- "3000:3000"
devices:
- /dev/dri:/dev/dri #optional
shm_size: "1gb" #optional
plexs:
image: lscr.io/linuxserver/plex:1.29.1
restart: always
environment:
- PUID=1000
- PGID=2000
- VERSION=docker
- PLEX_CLAIM=
- TZ=Australia/Perth
volumes:
- ${BIND?err}plexs-config:/config
- ${DATA?err}fmedia:/fmedia
ports:
- "32400:32400"
- "1900:1900"
- "5353:5353/udp"
- "8324:8324"
- "32410/udp"
- "32412/udp"
- "32413/udp"
- "32414/udp"
- "32469"
devices:
- /dev/dri:/dev/dri
embys:
image: lscr.io/linuxserver/emby:amd64-4.7.8
restart: always
environment:
- PUID=1000
- PGID=2000
- TZ=Australia/Perth
volumes:
- ${BIND?err}embys-config:/config
- ${DATA?err}fmedia:/fmedia
ports:
- "8096:8096"
networks:
- local
devices:
- /dev/dri:/dev/dri
fsync:
image: lscr.io/linuxserver/syncthing:1.22.0
restart: always
environment:
- PUID=1000
- PGID=2000
- TZ=Australia/Perth
volumes:
- ${BIND?err}fsync-config:/config
- ${DATA?err}fmedia/Mobile/Andrew:/Andrew
- ${DATA?err}fmedia/Mobile/Susan:/Susan
ports:
- "8384:8384"
- "22000:22000/tcp"
- "22000:22000/udp"
- "21027:21027/udp"
networks:
- local
nextc:
image: lscr.io/linuxserver/nextcloud:25.0.0
restart: always
environment:
- PUID=1000
- PGID=2000
- TZ=Australia/Perth
volumes:
- ${BIND?err}nextc-config:/config
- ${DATA?err}ncdata:/ncdata
- ${DATA?err}fmedia:/fmedia
ports:
- "8443:443"
depends_on:
- nextc-db
networks:
- local
- nextc
nextc-db:
image: lscr.io/linuxserver/mariadb:10.6.10
restart: always
volumes:
- ${BIND?err}nextc-db-config:/config
environment:
- PUID=1000
- PGID=1000
- TZ=Australia/Perth
- REMOTE_SQL=
networks:
- nextc

View File

@ -2,6 +2,11 @@
#set -o xtrace #set -o xtrace
if [[ ! -f docker-compose.yml ]]; then
printf "Needs to be run from compose directory\n"
exit 1
fi
source .env source .env
P1="sudo docker compose exec -u 1000" P1="sudo docker compose exec -u 1000"
@ -26,11 +31,13 @@ if [[ $? -eq 0 && -n $RE ]]; then
RE=$($P1 nextc-db bash -c "mysqladmin -u root password $ROOTPASS") RE=$($P1 nextc-db bash -c "mysqladmin -u root password $ROOTPASS")
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
printf "Root password changed\n" printf "Root password changed\n"
printf "ROOTPASS: $ROOTPASS\n" > install.log
RE=$($P1 nextc bash -c "$P2 maintenance:install --database mysql \ RE=$($P1 nextc bash -c "$P2 maintenance:install --database mysql \
--database-host nextc-db --database-name ncdb --database-user root \ --database-host nextc-db --database-name ncdb --database-user root \
--database-pass $ROOTPASS --admin-user $USERNAME --admin-pass $USERPASS --data-dir /ncdata") --database-pass $ROOTPASS --admin-user $USERNAME --admin-pass $USERPASS --data-dir /ncdata")
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
printf "USERNAME: $USERNAME\nUSERPASS: $USERPASS\n" >> install.log
printf "Install success\n" printf "Install success\n"
else else
exit 1; exit 1;