3 Commits
1.02 ... 1.05

Author SHA1 Message Date
Olli Graf
d5a273fe28 Aktualisierte gitea Daten. 2026-01-19 09:26:32 +01:00
9ece2ad290 nextcloud-cron korrigiert. 2025-08-22 14:33:00 +02:00
9700969bc4 nextcloud-cron 2025-08-21 15:54:23 +02:00
5 changed files with 42 additions and 13 deletions

View File

@@ -1,12 +1,11 @@
version: "3" version: "3"
services: services:
pihole: gitea:
container_name: gitea container_name: gitea
image: kunde21/gitea-arm:latest image: gitea/gitea:latest
ports: ports:
- "3000:3000/tcp" - '3001:3000/tcp'
- "23:22/tcp"
# Volumes store your data between container upgrades # Volumes store your data between container upgrades
volumes: volumes:
- '/opt/gitea:/data' - '/opt/gitea:/data'

8
gitea/update-container Executable file
View File

@@ -0,0 +1,8 @@
#! /usr/bin/bash
echo "pulling image ${1}"
docker pull ${1}
echo "removing container ${2}"
docker rm -f ${2}

6
gitea/update.sh Executable file
View File

@@ -0,0 +1,6 @@
#! /usr/bin/bash
export COMPOSE_IGNORE_ORPHANS=True
./update-container gitea/gitea:latest gitea
echo "creating new container"
docker-compose -f ./docker-compose.yml up -d

View File

@@ -1,4 +1,4 @@
# $HOME/docker/compose-files/grafana/.env # $HOME/docker/nextcloud/.env
MSQL_PASSWORD=<passwort> MSQL_PASSWORD=<passwort>
MYSQL_DATABASE=nextcloud MYSQL_DATABASE=nextcloud
MYSQL_USER=nextcloud MYSQL_USER=nextcloud

View File

@@ -1,16 +1,12 @@
version: "3.8" version: "3.3"
services: services:
redis:
nextcloud: nextcloud:
image: nextcloud:latest image: nextcloud:latest
container_name: nextcloud container_name: nextcloud
restart: always restart: always
ports: ports:
- "9000:80" # Nur intern, nginx übernimmt externen Zugang - "9000:80"
links:
- redis
environment: environment:
- MYSQL_PASSWORD=${MYSQL_PASSWORT} - MYSQL_PASSWORD=${MYSQL_PASSWORT}
- MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_DATABASE=${MYSQL_DATABASE}
@@ -23,16 +19,36 @@ services:
- /mnt/nextcloud/nextcloud/data:/var/www/html/data - /mnt/nextcloud/nextcloud/data:/var/www/html/data
networks: networks:
- nextcloudnet - nextcloudnet
nextcloud-cron:
image: nextcloud:latest
container_name: nextcloud-cron
restart: always
entrypoint: /cron.sh
command:
- -c
- |
echo "*/5 * * * * www-data pgrep -f 'cron.php' > /dev/null || php -f /var/www/html/cron.php" > /etc/crontabs/root
crond -f -l 2
volumes:
- /mnt/nextcloud/nextcloud/html:/var/www/html
- /mnt/nextcloud/nextcloud/apps:/var/www/html/custom_apps
- /mnt/nextcloud/nextcloud/config:/var/www/html/config
- /mnt/nextcloud/nextcloud/data:/var/www/html/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
networks:
- nextcloudnet
clamav: clamav:
image: clamav/clamav-debian image: clamav/clamav-debian
container_name: clamav container_name: clamav
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3310:3310" # TCP-Port für clamd - "3310:3310"
volumes: volumes:
- /opt/clamav:/var/lib/clamav - /opt/clamav:/var/lib/clamav
networks: networks:
nextcloudnet: nextcloudnet:
driver: bridge