Skip to content

Instantly share code, notes, and snippets.

View sebastian13's full-sized avatar

Sebastian Plocek sebastian13

  • Vienna, Austria
View GitHub Profile
@sebastian13
sebastian13 / docker-compose.yml
Created March 6, 2018 15:47
docker-compose file for Wordpress + mysql database
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;
@sebastian13
sebastian13 / atlassian-confluence-docker-compose.yml
Last active March 27, 2023 15:46
A docker-compose file for the official Atlassian Confluence Server, using a postgres database and a separate reverse proxy, connected via docker network 'www-network'.
version: '3'
services:
confluence:
image: atlassian/confluence-server:6.11
restart: always
expose:
- 8090
volumes:
- ./confluence/:/var/atlassian/application-data/confluence

Install Docker on Debian 9

1. Prepare Disk / Partition

# Identify the Disk
@sebastian13
sebastian13 / debian-install-btrbk.sh
Last active March 19, 2019 14:14
Install btrbk on Debian
#!/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