Compare commits

...

4 Commits

Author SHA1 Message Date
mr-vercetti
3f4610cf3e Add Netdata and update docs 2023-11-26 21:52:50 +01:00
mr-vercetti
f241a9810f Add mgmt script 2023-11-26 21:39:11 +01:00
mr-vercetti
72c2170c10 Add static fileserver 2023-11-26 21:29:50 +01:00
mr-vercetti
88475cc82b Integrate drone with github instead of gitea 2023-11-26 21:27:09 +01:00
7 changed files with 95 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 117 KiB

View File

@ -12,6 +12,7 @@ All services are deployed using Docker compose and are run as a non-root user.
* [watchtower](https://github.com/containrrr/watchtower) - notifications about docker image updates
* [Duplicati](https://github.com/linuxserver/docker-duplicati) - cool backup
software
* [Netdata](https://github.com/netdata/netdata) - real time monitoring solution
### Media
* [Jellyfin](https://github.com/linuxserver/docker-jellyfin) - media server
@ -20,12 +21,14 @@ All services are deployed using Docker compose and are run as a non-root user.
* [Bazarr](https://github.com/linuxserver/docker-bazarr) - subtitle manager
* [delugevpn](https://github.com/binhex/arch-delugevpn) - torrent client with VPN and Privoxy
* [YoutubeDL](https://github.com/Tzahi12345/YoutubeDL-Material) - Youtube media downloader
* [Prowlarr](https://github.com/Prowlarr/Prowlarr) - indexer
### Personal cloud
* [Nextcloud](https://github.com/linuxserver/docker-nextcloud) - filesync/cloud solution
* [Redis](https://github.com/docker-library/redis) - cache service
* [MariaDB](https://github.com/linuxserver/docker-mariadb) - database
* [Collabora](https://github.com/CollaboraOnline/online) - office suite
* [static-file-server](https://github.com/halverneus/static-file-server) - static file server
### Software development
* [Gitea](https://github.com/go-gitea/gitea) - git web service

View File

@ -40,6 +40,7 @@ BACKUP_DIR=
# netdata
HOSTNAME=
NETDATA_PGID=
# gitea
# you need to create "git" user and group
@ -51,10 +52,18 @@ GITEA_MYSQL_USER=
GITEA_MYSQL_PASSWORD=
# drone
DRONE_GITEA_SERVER=https://git.domain.com
# gitea integration is disabled right now, instead i use github
#DRONE_GITEA_SERVER=https://git.domain.com
# generate these in gitea
#DRONE_GITEA_CLIENT_ID=
#DRONE_GITEA_CLIENT_SECRET=
DRONE_GITHUB_CLIENT_ID=
DRONE_GITHUB_CLIENT_SECRET=
DRONE_SERVER_HOST=https://drone.domain.com
DRONE_RPC_SECRET=
# generate these in gitea
DRONE_GITEA_CLIENT_ID=
DRONE_GITEA_CLIENT_SECRET=
DRONE_USER_CREATE=username:<--USERNAME-->,machine:false,admin:true,token:${DRONE_RPC_SECRET}
# collabora
COLLABORA_USERNAME=
COLLABORA_PASSWORD=
COLLABORA_DOMAIN=

27
docker/mgmt.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Please provide command to execute: 'up', 'stop' or 'restart'"
exit 1
fi
command="$1"
for stack in stacks/*/*
do
case "$command" in
"up")
docker-compose -f "${stack}" --env-file .env up -d
;;
"stop")
docker-compose -f "${stack}" --env-file .env stop
;;
"restart")
docker-compose -f "${stack}" --env-file .env restart
;;
*)
echo "Wrong command. Please use 'up', 'stop' or 'restart'"
exit 1
;;
esac
done

View File

@ -0,0 +1,21 @@
services:
homer:
image: halverneus/static-file-server
container_name: file-server
networks:
- file-server
- proxy
volumes:
- ${DATA_DIR}/file-server:/content/files
environment:
- FOLDER=/content/files
ports:
- 8097:8080
restart: unless-stopped
networks:
proxy:
external:
name: proxy
file-server:
name: file-server

View File

@ -0,0 +1,29 @@
services:
netdata:
image: netdata/netdata
container_name: netdata
hostname: ${HOSTNAME}
networks:
- netdata
cap_add:
- SYS_PTRACE
security_opt:
- apparmor:unconfined
environment:
- PGID=${NETDATA_PGID}
- TZ=${TIMEZONE}
- DISABLE_TELEMETRY=1
volumes:
- /etc/passwd:/host/etc/passwd:ro
- /etc/group:/host/etc/group:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /etc/os-release:/host/etc/os-release:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 19999:19999
restart: unless-stopped
networks:
netdata:
name: netdata

View File

@ -45,12 +45,11 @@ services:
environment:
- DRONE_DATABASE_DRIVER=sqlite3
- DRONE_DATABASE_DATASOURCE=/data/database.sqlite
- DRONE_GITEA_SERVER=${DRONE_GITEA_SERVER}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_SERVER_PROTO=https
- DRONE_SERVER_HOST=${DRONE_SERVER_HOST}
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}
- DRONE_GITHUB_CLIENT_ID=${DRONE_GITHUB_CLIENT_ID}
- DRONE_GITHUB_CLIENT_SECRET=${DRONE_GITHUB_CLIENT_SECRET}
- DRONE_LOGS_DEBUG=true
- DRONE_USER_CREATE=${DRONE_USER_CREATE}
ports: