commit d5e83ed27163149b20498de7b549955dec8b639d Author: meliurwen Date: Sun Aug 23 01:55:25 2020 +0200 Moved on git 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