examples - use example.com instead of website.com

This commit is contained in:
bunkerity
2021-07-16 09:40:02 +02:00
parent 6713f56ec1
commit b926b0db62
56 changed files with 128 additions and 128 deletions

View File

@@ -19,33 +19,33 @@ services:
- ./letsencrypt:/etc/letsencrypt
environment:
- MULTISITE=yes
- SERVER_NAME=app1.website.com app2.website.com app3.website.com # replace with your domains
- SERVER_NAME=app1.example.com app2.example.com app3.example.com # replace with your domains
- DISABLE_DEFAULT_SERVER=yes
- REDIRECT_HTTP_TO_HTTPS=yes
- AUTO_LETS_ENCRYPT=yes
- USE_CLIENT_CACHE=yes
- USE_GZIP=yes
- ROOT_SITE_SUBFOLDER=web-files
- app1.website.com_REMOTE_PHP=app1
- app1.website.com_REMOTE_PHP_PATH=/var/www/html
- app2.website.com_REMOTE_PHP=app2
- app2.website.com_REMOTE_PHP_PATH=/var/www/html
- app2.website.com_ROOT_SITE_SUBFOLDER= # no subfolder
- app3.website.com_REMOTE_PHP=app3
- app3.website.com_REMOTE_PHP_PATH=/var/www/html
- app3.website.com_ROOT_SITE_SUBFOLDER=another-folder
- app1.example.com_REMOTE_PHP=app1
- app1.example.com_REMOTE_PHP_PATH=/var/www/html
- app2.example.com_REMOTE_PHP=app2
- app2.example.com_REMOTE_PHP_PATH=/var/www/html
- app2.example.com_ROOT_SITE_SUBFOLDER= # no subfolder
- app3.example.com_REMOTE_PHP=app3
- app3.example.com_REMOTE_PHP_PATH=/var/www/html
- app3.example.com_ROOT_SITE_SUBFOLDER=another-folder
app1:
image: php:fpm
restart: always
volumes:
- ./apps/app1.website.com/web-files:/var/www/html # app1 project web root
- ./apps/app1.example.com/web-files:/var/www/html # app1 project web root
app1_db:
image: mariadb
restart: always
volumes:
- ./apps/app1.website.com/db-data:/var/lib/mysql # app1 project data
- ./apps/app1.example.com/db-data:/var/lib/mysql # app1 project data
environment:
- MYSQL_ROOT_PASSWORD=db-root-pwd # replace with a stronger password
- MYSQL_DATABASE=app
@@ -56,11 +56,11 @@ services:
image: php:fpm
restart: always
volumes:
- ./apps/app2.website.com:/var/www/html # app2 project with no subfolder
- ./apps/app2.example.com:/var/www/html # app2 project with no subfolder
app3:
build: apps/app3.website.com/. # project with custom built image
build: apps/app3.example.com/. # project with custom built image
image: my-php
restart: always
volumes:
- ./apps/app3.website.com/another-folder:/var/www/html # app3 project web root
- ./apps/app3.example.com/another-folder:/var/www/html # app3 project web root