Compare commits

...

24 Commits

Author SHA1 Message Date
Thord Johansson 0cf401ac8c Added syncthing 2024-06-06 11:35:11 +02:00
--set 6b78f4df1c Removed redis in favour of drop-in replacement dragonfly, maintaining container name 2024-04-13 22:09:59 +02:00
--set cafe0b07cb Deprecated/removed photoprism compose 2024-03-30 20:30:39 +01:00
--set 1509572b73 Updated thinkcentre nextcloud compose 2024-03-26 16:06:45 +01:00
--set 76a7ef8642 Added mariadb to thinkcentre 2024-03-26 15:36:15 +01:00
--set 90e95f25d6 Removed mariadb and photoprism from pi 2024-03-26 15:35:08 +01:00
--set 9fc2175dcd Changed to local path for stash config 2024-03-26 12:53:59 +01:00
--set 6e89707032 Changed to local path for config 2024-03-26 12:53:22 +01:00
Thord Johansson 568fcaafd1 Added static server default.conf to tracking 2024-03-26 12:08:50 +01:00
Thord Johansson ddef0cc7bc Updated .gitignore 2024-03-26 12:07:56 +01:00
Thord Johansson 78214697ad Renamed static server folders for ease of use 2024-03-26 11:59:32 +01:00
Thord Johansson 830ed628bf Renamed static server container (tc) 2024-03-26 11:54:39 +01:00
Thord Johansson f4832fe8de Renamed static server container 2024-03-26 11:53:34 +01:00
Thord Johansson 365c9822bc Updated mariadb port configuration 2024-03-26 11:52:08 +01:00
Thord Johansson f70ca9ed2b Reverted back to using local files for nextcloud and added health check 2024-03-26 11:51:26 +01:00
Thord Johansson 0eb4463bc1 Merge branch 'main' of code.criminallycute.fi:thordinary/docker-compose 2024-03-26 01:34:20 +01:00
Thord Johansson c80d886db8 Added naspi/update.sh 2024-03-26 01:34:12 +01:00
Thord Johansson 4891f6972f Changed port number for homepage to not conflict with npm 2024-03-26 01:32:41 +01:00
Thord Johansson cff4f221c6 Updated .gitignore to include .sh files and added helper scripts 2024-03-26 01:26:00 +01:00
Thord Johansson d1ea672bd7 Fixed nextcloud compose volumes and networks 2024-03-26 01:18:39 +01:00
Thord Johansson f40b2319ae Merged docker compose files per hostname, thinkcentre over NFS4 2024-03-26 01:06:46 +01:00
Thord Johansson 70e58569f8 Updated .gitignore 2024-03-26 01:05:51 +01:00
Thord Johansson 446100706d Moved thinkcentre compose files into folder 2024-03-25 23:57:48 +01:00
Thord Johansson d711270776 Updated .gitignore 2024-03-25 23:57:20 +01:00
27 changed files with 390 additions and 78 deletions

9
.gitignore vendored
View File

@ -4,13 +4,14 @@
# don't ignore dirs so we can look inside them
!*/
# but do ignore volumes and subsubdirs
# but do ignore volumes and subsubsubdirs e.g. hostname/container/configstuff
volumes/
*/*/
*/*/*/*
# only allow .yml files
# allow the following files
!*.yml
!*.sh
!*.conf
!*.md
!.gitignore
.env

View File

@ -1,59 +0,0 @@
version: '3.7'
# on naspi for remote docker stop commands:
# sudo visudo
# thord ALL=(ALL) NOPASSWD: /bin/systemctl start docker, /bin/systemctl stop docker
services:
kopia:
image: kopia/kopia:latest
hostname: kopia-host
container_name: kopia
restart: unless-stopped
networks:
vlan:
ipv4_address: 192.168.1.102
ports:
- 51515:51515
command:
- server
- start
- --disable-csrf-token-checks
- --insecure
- --address=0.0.0.0:51515
- --server-username=${KOPIA_USER_NAME}
- --server-password=${KOPIA_USER_PASSWORD}
environment:
# Set repository password
KOPIA_PASSWORD: "${KOPIA_PASSWORD}"
USER: "User"
volumes:
# Mount local folders needed by kopia
- /opt/kopia/config:/app/config
- /opt/kopia/cache:/app/cache
- /opt/kopia/logs:/app/logs
# Use NFS volume for storage
- nfs-naspi:/data/naspi:ro
# Mount repository location locally
- /opt/kopia/repository:/repository
# Mount path for browsing mounted snapshots
- /tmp:/tmp:shared
- /home/thord/.config/rclone:/app/rclone
- /usr/bin/rclone:/app/rclone-bin
volumes:
nfs-naspi:
driver: local
driver_opts:
type: nfs
o: addr=${NFS_SERVER_IP},ro,nolock
device: ":/mnt/data"
networks:
vlan:
driver: macvlan
driver_opts:
parent: eno1 # Adjust the parent interface based on your host configuration
ipam:
config:
- subnet: 192.168.1.0/24
gateway: 192.168.1.1 # Adjust the gateway based on your network configuration

View File

@ -0,0 +1,16 @@
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ${HOMEASSISTANT_PATH}/config:/config
- /etc/localtime:/etc/localtime:ro
- /run/dbus:/run/dbus:ro
devices:
- '/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_7cf0ee91b8d8ed11a8216b6162c613ac-if00-port0:/dev/ttyUSB0'
restart: unless-stopped
privileged: true
network_mode: host
environment:
- TZ=Europe/Stockholm

View File

@ -0,0 +1,13 @@
version: "3.3"
services:
homepage:
image: ghcr.io/benphelps/homepage:latest
container_name: homepage
network_mode: bridge
restart: unless-stopped
ports:
- 800:3000
volumes:
- ${HOMEPAGE_CONFIG_PATH}:/app/config # Make sure your local config directory exists
- /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations

View File

@ -0,0 +1,25 @@
version: "3"
# Remember to run: docker network create proxy
networks:
proxy:
external: true
services:
reverse-proxy:
container_name: nginx-proxy-manager
image: "jc21/nginx-proxy-manager:latest"
restart: always
ports:
- "80:80"
- "443:443"
- "81:81"
environment:
DB_SQLITE_FILE: "/data/database.sqlite"
DISABLE_IPV6: "true"
volumes:
- /mnt/data/storage/nginx-proxy/data:/data
- /mnt/data/storage/nginx-proxy/letsencrypt:/etc/letsencrypt
networks:
- proxy

View File

@ -0,0 +1,12 @@
version: '3.3'
services:
run:
volumes:
- /mnt/data/storage/owncast:/app/data
ports:
- '8085:8080'
- '1935:1935'
image: gabekangas/owncast:latest
restart: always
container_name: owncast

View File

@ -0,0 +1,34 @@
version: "3.8"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
network_mode: host
#ports:
#- "53:53/tcp"
#- "53:53/udp"
#- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
#- "8081:80/tcp"
environment:
WEB_PORT: 8081
TZ: 'Europe/Stockholm'
# WEBPASSWORD: 'set a secure password here or it will be random'
# Volumes store your data between container upgrades
volumes:
- '/mnt/data/storage/pihole/etc-pihole:/etc/pihole'
- '/mnt/data/storage/pihole/etc-dnsmasq.d:/etc/dnsmasq.d'
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
# networks:
# - proxy
#networks:
# default:
# external: true
# proxy:
# external: true

View File

@ -0,0 +1,12 @@
version: '3.3'
services:
redis:
container_name: redis
image: redis:latest
restart: always
networks:
- proxy
networks:
proxy:
external: true

10
naspi/startall.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ $(basename $(readlink $PWD)) != $(hostname) ]; then
echo "Incorrect directory for host"
exit 1
fi
# will skip folders with a leading "_" (indicating not used)
for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done

View File

@ -0,0 +1,14 @@
services:
nginx:
container_name: naspi-static
volumes:
- /var/www/static:/usr/share/nginx/html:ro
ports:
- 8888:80
image: nginx
networks:
- proxy
networks:
proxy:
external: true

View File

@ -0,0 +1,19 @@
services:
syncthing:
image: lscr.io/linuxserver/syncthing:latest
container_name: syncthing
hostname: syncthing #optional
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
volumes:
- /mnt/data/storage/syncthing/config:/config
- /mnt/data/storage/syncthing/data:/data
# - /path/to/data2:/data2
ports:
- 8384:8384
- 22000:22000/tcp
- 22000:22000/udp
- 21027:21027/udp
restart: unless-stopped

View File

@ -0,0 +1,23 @@
version: "2.1"
services:
transmission:
image: lscr.io/linuxserver/transmission:latest
container_name: transmission
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Stockholm
- USER=${USERNAME} #optional
- PASS=${PASSWORD} #optional
- WHITELIST= #optional
- PEERPORT= #optional
- HOST_WHITELIST= #optional
volumes:
- /mnt/data/storage/transmission:/config
- /mnt/data/downloads:/downloads
ports:
- 9091:9091
- 51413:51413
- 51413:51413/udp
restart: unless-stopped

3
naspi/update.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker pull containrrr/watchtower
docker run -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once

View File

@ -0,0 +1,14 @@
version: '3.3'
services:
server:
container_name: vaultwarden
volumes:
- /mnt/data/storage/vaultwarden:/data
ports:
- '5080:80'
image: 'vaultwarden/server:latest'
networks:
- proxy
networks:
proxy:
external: true

View File

@ -1,14 +0,0 @@
services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: always
ports:
- "8000:8000"
- "9443:9443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
volumes:
portainer_data:

View File

@ -0,0 +1,8 @@
services:
dragonfly:
container_name: redis # for compatibility
network_mode: host
ulimits:
memlock: -1
image: docker.dragonflydb.io/dragonflydb/dragonfly
restart: always

View File

@ -0,0 +1,31 @@
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
#user: 1000:1000
network_mode: 'host'
volumes:
- /mnt/data/storage/jellyfin/config:/config
- /mnt/data/storage/jellyfin/cache:/cache
- media:/media
- /mnt/data/downloads/complete:/downloads
#ports:
# - "8096:8096/tcp"
# - "8920:8920/tcp"
# - "1900:1900/udp"
# - "7359:7359/udp"
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
#environment:
# - JELLYFIN_PublishedServerUrl=http://example.com
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
media:
driver_opts:
type: "nfs"
o: "addr=192.168.1.100,nfsvers=4"
device: ":/mnt/data/media/"

View File

@ -0,0 +1,23 @@
version: '3.1'
services:
db:
container_name: mariadb-main
image: mariadb
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- /mnt/data/mysql:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_DATABASE=${MARIADB_DATABASE}
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
adminer:
container_name: mariadb-adminer
image: adminer
restart: always
ports:
- 8082:8080

View File

@ -0,0 +1,3 @@
Remember to move the cronjob if moving between servers:
*/5 * * * * /usr/bin/docker container exec -u www-data nextcloud php -f cron.php --define apc.enable_cli=1

View File

@ -0,0 +1,31 @@
version: '2'
services:
app:
container_name: nextcloud
image: nextcloud
restart: always
ports:
- 8080:80
volumes:
- app:/var/www/html
- /mnt/data/nextcloud/files:/var/www/html/data
- /mnt/data/nextcloud/config:/var/www/html/config
environment:
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_HOST=${MYSQL_HOST}
networks:
- mariadb_default
- proxy
networks:
mariadb_default:
external: true
proxy:
name: proxy
external: true
volumes:
app:

10
thinkcentre/startall.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
if [ $(basename $(readlink $PWD)) != $(hostname) ]; then
echo "Incorrect directory for host"
exit 1
fi
# will skip folders with a leading "_" (indicating not used)
for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done

View File

@ -0,0 +1,35 @@
# APPNICENAME=Stash
# APPDESCRIPTION=An organizer for your ****, written in Go
version: '3.4'
services:
stash:
image: stashapp/stash:latest
container_name: stash
restart: always
## the container's port must be the same with the STASH_PORT in the environment section
ports:
- "9999:9999"
## If you intend to use stash's DLNA functionality uncomment the below network mode and comment out the above ports section
# network_mode: host
logging:
driver: "json-file"
options:
max-file: "10"
max-size: "2m"
environment:
- STASH_STASH=data/
- STASH_GENERATED=generated/
- STASH_METADATA=metadata/
- STASH_CACHE=cache/
## Adjust below to change default port (9999)
- STASH_PORT=9999
volumes:
- /etc/localtime:/etc/localtime:ro
## Adjust below paths (the left part) to your liking.
## E.g. you can change ./config:/root/.stash to ./stash:/root/.stash
- /mnt/data/storage/stash-meta/config:/root/.stash
- /mnt/data/storage/stash-meta/metadata:/metadata
- /mnt/data/storage/stash-meta/cache:/cache
- /mnt/data/storage/stash-meta/generated:/generated
- /mnt/data/storage/stash:/data

View File

@ -0,0 +1,45 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}

View File

@ -2,7 +2,7 @@ version: '3.9'
services:
web:
container_name: nginx-server
container_name: thinkcentre-static
image: nginx:latest
ports:
- '80:80'

3
thinkcentre/update.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker pull containrrr/watchtower
docker run -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once