Skip to content

Instantly share code, notes, and snippets.

F. Kaminski fkaminski

  • Bremen, Germany
Block or report user

Report or block fkaminski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fkaminski
fkaminski / restore.sh
Last active Dec 28, 2018
Contao-Docker-Tutorial - restore.sh
View restore.sh
#!/bin/bash
### Include
source vars.sh
### Due to possible file permission issues we mount the _backup folder in docker-composer.yml
### So we do not use the 'docker cp' command here - instead copy files in the container
echo -e $COL_START
echo -e " [STEP-1] Copy Contao composer.json file from Container $BACKUP_DIR directory"'\e[K'
@fkaminski
fkaminski / backup.sh
Last active Dec 19, 2018
Contao-Docker-Tutorial - backup.sh
View backup.sh
#!/bin/bash
### Include
source vars.sh
echo -e $COL_START
echo -e " [STEP-1] Copy composer.* files from Container to Host $BACKUP_DIR directory"'\e[K'
echo -e $COL_STEP
eval 'docker cp '$CONTAINER_CONTAO':'$CONTAINER_WORKDIR'composer.json '$BACKUP_DIR''
@fkaminski
fkaminski / vars.sh
Last active Dec 19, 2018
Contao-Docker-Tutorial - vars.sh
View vars.sh
#!/bin/bash
### Get actual Data form .env file
### See https://gist.github.com/judy2k/7656bfe3b322d669ef75364a46327836
PROJECT_NAME=$(grep COMPOSE_PROJECT_NAME .env | cut -d '=' -f2)
GLOBAL_PASS_NAME=$(grep GLOBAL_PASS_NAME .env | cut -d '=' -f2)
BACKUP_DIR=$(grep BACKUP_DIR .env | cut -d '=' -f2)
@fkaminski
fkaminski / docker-compose.yml
Created Dec 19, 2018
Contao-Docker-Tutorial - docker-compose.yml
View docker-compose.yml
# see: https://docs.docker.com/compose/compose-file/compose-file-v2/
version: '2.2'
services:
web:
image: ctsmedia/baseimage-web-apache:1.2.0
container_name: &hostname ${COMPOSE_PROJECT_NAME}.local
environment:
DOCKER_DOMAIN: *hostname
PROJECT_NAME: &project ${COMPOSE_PROJECT_NAME}
@fkaminski
fkaminski / Dockerfile
Created Dec 19, 2018
Contao-Docker-Tutorial - Dockerfile
View Dockerfile
### See: https://hub.docker.com/r/ctsmedia/baseimage-web-php/tags/
FROM ctsmedia/baseimage-web-php:7.2-fpm
MAINTAINER MODIFIED | Original by Daniel Schwiperich | ctsmedia <entwicklung@cts-media.eu>
### Contao Version to install
### Could be overwritten on build like: docker build -t my/contao:4.4.31 --build-arg CONTAO_VERSION=4.4.* .
ARG CONTAO_VERSION=4.4.*
WORKDIR /var/www/share/project
@fkaminski
fkaminski / .env
Last active Dec 19, 2018
Contao-Docker-Tutorial - .env Datei
View .env
### See: https://docs.docker.com/compose/env-file/
### Check "docker-compose.yml" Syntax with "docker-compose config"
### Set existing Docker Image to use
### Create an actual Contao/PHP Image from local Dockefile like: docker build -t my/contao:4.4.32 --build-arg CONTAO_VERSION=4.4.* .
CONTAO_IMAGE=my/contao:4.4.32
### Set to get unique Container Names
### Use only lowercase letters without special characters
You can’t perform that action at this time.