Compare commits

...

7 Commits

Author SHA1 Message Date
a94405fa52 . 2024-01-20 21:08:37 +00:00
ecc6192593 . 2024-01-20 20:33:41 +00:00
33e4fb5196 -a 2024-01-20 20:32:41 +00:00
b7f3129208 . 2024-01-20 20:30:21 +00:00
62bd809554 . 2024-01-20 20:28:47 +00:00
6582a1c640 . 2024-01-20 20:26:53 +00:00
fad036d559 . 2024-01-20 20:26:08 +00:00
15 changed files with 318 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
jmusicbot/config.txt

View File

@ -0,0 +1,27 @@
version: "3"
services:
server:
image: solidnerd/bookstack:latest
container_name: bookstack
environment:
- DB_HOST=192.168.2.90:3306
- DB_DATABASE=bookstack
- DB_USERNAME=bookstack
- DB_PASSWORD=9mbfcqxrxBc33UB8FwxC
- APP_URL='https://wiki.krumel.moe'
- FILE_UPLOAD_SIZE_LIMIT=50M
- APP_KEY='efb0b9f997b0f937a2ea99906fb05624'
# - APP_DEBUG=true
restart: always
networks:
- bookstack
# volumes:
ports:
- "8180:8080"
networks:
bookstack:
ipam:
config:
- subnet: 172.20.190.0/24

View File

@ -0,0 +1,23 @@
version: "3"
services:
server:
image: collabora/code
container_name: collabora
environment:
- domain=cloud.krumel.moe
- extra_params="--o:ssl.enable=true --o:ssl.termination=true"
env_file:
- /srv/docker/docker-secrets/collabora.env
restart: always
networks:
- collabora
ports:
- "9980:9980"
networks:
collabora:
ipam:
config:
- subnet: 172.20.120.0/24

View File

@ -0,0 +1,33 @@
version: "3.7"
services:
foundryvtt:
image: felddy/foundryvtt:release
hostname: foundry.krumel.moe
init: true
volumes:
- /srv/docker/foundry:/data
ports:
- "30000:30000/tcp"
restart: "unless-stopped"
environment:
- FOUNDRY_HOSTNAME=foundry.krumel.moe
- FOUNDRY_LOCAL_HOSTNAME=petit-docker.grafschaft.lan:30000
- FOUNDRY_PROXY_PORT=443
- FOUNDRY_PROXY_SSL=true
- CONTAINER_PRESERVE_CONFIG=true
networks:
- foundry
secrets:
- source: foundry_creds
target: config.json
networks:
foundry:
ipam:
config:
- subnet: 172.20.60.0/24
secrets:
foundry_creds:
file: /srv/docker/docker-secrets/foundry.json

26
gitea/docker-compose.yml Normal file
View File

@ -0,0 +1,26 @@
version: "3"
services:
server:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=2000
- USER_GID=2000
restart: always
networks:
- gitea
volumes:
- /srv/docker/gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# - /home/git/.ssh/:/data/git/.ssh
ports:
- "3300:3000"
- "3322:22"
networks:
gitea:
ipam:
config:
- subnet: 172.20.30.0/24

9
grafana/auto_restart.log Normal file
View File

@ -0,0 +1,9 @@
Some services (influxdb) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm.
Removing grafana ...
Removing influxdb ...

Removing grafana ... done

Removing influxdb ... done
Removing network grafana_grafana
Some services (influxdb) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm.

16
grafana/auto_restart.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
cd /home/admin/compose/grafana
response=$(curl --write-out '%{http_code}' --silent --output /dev/null https://grafana.krumel.moe)
if [[ $response -gt 500 ]] ; then
/usr/local/bin/docker-compose -f grafana.compose down > auto_restart.log 2>&1
/usr/local/bin/docker-compose -f grafana.compose up -d >> auto_restart.log 2>&1
sleep 1m
response=$(curl --write-out '%{http_code}' --silent --output /dev/null https://grafana.krumel.moe)
if [[ $response -gt 500 ]] ; then
echo "Auto Restart of Grafana/InfluxDB did not succeed, Status $response"
fi
fi

View File

@ -0,0 +1,38 @@
version: '3.3'
services:
grafana:
ports:
- '3000:3000'
container_name: grafana
volumes:
- '/srv/docker/grafana/data:/var/lib/grafana'
- '/srv/docker/grafana/grafana.ini:/etc/grafana/grafana.ini'
image: grafana/grafana:latest
# environment:
# - GF_INSTALL_PLUGINS=natel-plotly-panel,briangann-gauge-panel,petrslavotinek-carpetplot-panel,neocat-cal-heatmap-panel
networks:
- grafana
restart: unless-stopped
influxdb:
container_name: influxdb
ports:
- '8086:8086'
volumes:
- '/srv/docker/influxdb/data:/var/lib/influxdb2'
- '/srv/docker/influxdb/config.yml:/etc/influxdb2/config.yml'
image: 'influxdb'
networks:
- grafana
restart: unless-stopped
deploy:
resources:
limits:
memory: 4G
networks:
grafana:
ipam:
config:
- subnet: 172.20.0.0/24

View File

@ -0,0 +1,22 @@
version: '3'
services:
mosquitto:
container_name: mosquitto-broker
image: eclipse-mosquitto
volumes:
- /srv/docker/homeassistant/mosquitto:/mosquitto/
ports:
- 1883:1883
- 9001:9001
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /srv/docker/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
# sadly this is required for mDNS broadcasts
network_mode: host
depends_on:
- mosquitto

View File

@ -0,0 +1,15 @@
version: '3.7'
services:
jmusicbot-app:
build:
context: .
dockerfile: dockerfile
args:
RELEASE_URL: "https://github.com/jagrosh/MusicBot/releases/download/0.3.9/JMusicBot-0.3.9.jar"
container_name: jmusicbot
#ports:
volumes:
- ./config.txt:/jmusicbot/config.txt
#environment:
restart: unless-stopped

8
jmusicbot/dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM openjdk:23
ARG RELEASE_URL
WORKDIR /jmusicbot
RUN curl -L "$RELEASE_URL" -o JMusicBot.jar
CMD ["java", "-jar", "JMusicBot.jar"]

3
listnets.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cat */* | grep -o subnet:.* | sort

View File

@ -0,0 +1,47 @@
version: '3.7'
services:
osticket-app:
image: tiredofit/osticket
container_name: osticket-app
ports:
- '8280:80'
volumes:
- /srv/docker/osticket/data/:/www/osticket
- /srv/docker/osticket/logs/:/www/logs
environment:
- TIMEZONE=Europe/Berlin
- CONTAINER_NAME=osticket-app
- CRON_INTERVAL=10
- DB_HOST=petit-db.grafschaft.lan
- DB_NAME=osticket
- DB_USER=osticket
- DB_PASS=hM0HDKgEjXjY0PmJ
- SMTP_HOST=petit-mail.grafschaft.lan
- SMTP_PORT=25
- SMTP_FROM=ticket@krumel.moe
- SMTP_TLS=0
- SMTP_USER=
- SMTP_PASS=
- INSTALL_SECRET=p5sj8KPmUFtwyHxo8cw3GHh1vSIMMsQb
- INSTALL_EMAIL=ticket@krumel.moe
- INSTALL_NAME=OSTicket
- ADMIN_FIRSTNAME=Admin
- ADMIN_LASTNAME=User
- ADMIN_EMAIL=admin@krumel.moe
- ADMIN_USER=ostadmin
- ADMIN_PASS=IpHB6mpsBHB5Iwgj
networks:
- osticket
restart: always
networks:
osticket:
ipam:
config:
- subnet: 172.20.1.0/24

View File

@ -0,0 +1,20 @@
version: "3"
services:
app:
image: powerdnsadmin/pda-legacy:latest
container_name: powerdns_admin_app
ports:
- "9191:80"
logging:
driver: json-file
options:
max-size: 50m
environment:
- GUNICORN_TIMEOUT=60
- GUNICORN_WORKERS=2
- GUNICORN_LOGLEVEL=WARNING
- SQLALCHEMY_DATABASE_URI=mysql://pdns:Ei8iVPIBlL95d0VK@petit-db.grafschaft.lan/pdns_admin
volumes:
- /srv/docker/pdnsadmin/data:/data
restart: unless-stopped

View File

@ -0,0 +1,30 @@
version: "2.1"
services:
unifi-controller:
image: ghcr.io/linuxserver/unifi-controller
container_name: unifi-controller
environment:
- PUID=1000
- PGID=1000
- MEM_LIMIT=640
volumes:
- /srv/docker/unifi-controller/config:/config
ports:
- 3478:3478/udp
- 10001:10001/udp
- 8080:8080
- 8443:8443
# - 1900:1900/udp #optional
# - 8843:8843 #optional
# - 8880:8880 #optional
# - 6789:6789 #optional
# - 5514:5514/udp #optional
restart: unless-stopped
networks:
- unifi-controller
networks:
unifi-controller:
ipam:
config:
- subnet: 172.20.20.0/24