Compare commits
2 Commits
1.03
...
d5a273fe28
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5a273fe28 | ||
| 9ece2ad290 |
@@ -1,12 +1,11 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
pihole:
|
||||
gitea:
|
||||
container_name: gitea
|
||||
image: kunde21/gitea-arm:latest
|
||||
image: gitea/gitea:latest
|
||||
ports:
|
||||
- "3000:3000/tcp"
|
||||
- "23:22/tcp"
|
||||
- '3001:3000/tcp'
|
||||
# Volumes store your data between container upgrades
|
||||
volumes:
|
||||
- '/opt/gitea:/data'
|
||||
|
||||
8
gitea/update-container
Executable file
8
gitea/update-container
Executable 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
6
gitea/update.sh
Executable 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
|
||||
@@ -1,4 +1,4 @@
|
||||
# $HOME/docker/compose-files/grafana/.env
|
||||
# $HOME/docker/nextcloud/.env
|
||||
MSQL_PASSWORD=<passwort>
|
||||
MYSQL_DATABASE=nextcloud
|
||||
MYSQL_USER=nextcloud
|
||||
|
||||
@@ -24,10 +24,12 @@ services:
|
||||
image: nextcloud:latest
|
||||
container_name: nextcloud-cron
|
||||
restart: always
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command: >
|
||||
echo "*/5 * * * * www-data pgrep -f 'cron.php' > /dev/null || php -f /var/www/html/cron.php"
|
||||
> /etc/crontabs/root && crond -f -l 2
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user