Rancher's container-crontab acts as a crontab for other containers.
version: '3'
services:
version: '3' | |
services: | |
wordpress: | |
image: wordpress:php7.1-apache | |
container_name: example.com | |
restart: always | |
volumes: | |
- ./wp-content/:/var/www/html/wp-content | |
environment: |
map $http_accept_language $lang { | |
default en; | |
~*^de de; | |
~*^en en; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name example.com; |
Rancher's container-crontab acts as a crontab for other containers.
version: '3'
services:
version: '3' | |
services: | |
confluence: | |
image: atlassian/confluence-server:6.11 | |
restart: always | |
expose: | |
- 8090 | |
volumes: | |
- ./confluence/:/var/atlassian/application-data/confluence |
# Identify the Disk
#!/bin/bash | |
apt update | |
apt install make | |
curl https://digint.ch/download/btrbk/releases/btrbk-0.27.1.tar.xz -o /tmp/btrbk.tar.xz | |
tar xf /tmp/btrbk.tar.xz -C /tmp | |
make install -C /tmp/btrbk-0.27.1/ | |
rm -r /tmp/btrbk* |
#!/bin/bash
cd /docker/zabbix
source /etc/restic/repos/example.repo
source .env
CONTAINER=zabbix_mariadb_1
#!/bin/bash | |
# Change to the script's directory & create directory | |
cd $(dirname "$(readlink -f "$0")") | |
mkdir -p ./dbdumps | |
# Load database name + root password | |
source .env | |
# Check if variables were provided |
#!/bin/bash | |
# Start mysql service of your compose file | |
docker compose up -d mysql | |
# Load DB_PASS | |
source .env | |
docker compose exec mysql /usr/bin/mysql -u root --password=${MYSQL_ROOT_PASSWORD} -e 'show databases;' |
#!/bin/bash | |
set -e | |
# Change to the script's directory & create directory | |
cd $(dirname "$(readlink -f "$0")") | |
mkdir -p ./pgdumps | |
# Start postgres service | |
docker --log-level=error compose up -d postgres |