From d5e83ed27163149b20498de7b549955dec8b639d Mon Sep 17 00:00:00 2001 From: meliurwen Date: Sun, 23 Aug 2020 01:55:25 +0200 Subject: [PATCH] Moved on git --- .env.example | 10 ++++++++++ .gitignore | 1 + docker-compose.yml | 18 ++++++++++++++++++ php-website.env.example | 5 +++++ 4 files changed, 34 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 docker-compose.yml create mode 100644 php-website.env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..d21daaa --- /dev/null +++ b/.env.example @@ -0,0 +1,10 @@ +# Global Settings +TZ=Europe/Berlin +LOCAL_STACK_DIR=/srv/docker/volumes/php-website + +# Networks +NETWORK=webservices + +# static-websites +PHP_CONTAINER_NAME= +PHP_RESTART= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03bd412 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.env diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6ba8f31 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: "3" + +services: + php-website: + container_name: ${PHP_CONTAINER_NAME:-php-website} + image: php:7-apache + restart: ${PHP_RESTART:-unless-stopped} + volumes: + - ${LOCAL_STACK_DIR}/wwww:/var/www/html + env_file: + - php-website.env + environment: + TZ: ${TZ} + +networks: + default: + external: + name: ${NETWORK} diff --git a/php-website.env.example b/php-website.env.example new file mode 100644 index 0000000..bc8ba3e --- /dev/null +++ b/php-website.env.example @@ -0,0 +1,5 @@ +# Reverse-proxy and certbot +VIRTUAL_HOST=subdomain.domain.tld +VIRTUAL_PORT=80 +LETSENCRYPT_HOST=subdomain.domain.tld +LETSENCRYPT_EMAIL=username@domain.tld