mirror of
https://github.com/casjaysdevdocker/tools
synced 2025-01-18 06:34:31 -05:00
17 lines
445 B
Bash
Executable File
17 lines
445 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Lets setup the domain
|
|
DOM=${1:-$HOSTNAME}
|
|
mkdir -p /var/lib/docker/storage/nginx/$DOM &&
|
|
chmod -Rf 777 /var/lib/docker/storage/nginx/$DOM
|
|
|
|
# Only allow local as we will use a proxy
|
|
docker run -d \
|
|
--restart always \
|
|
--name $DOM \
|
|
-v /var/lib/docker/storage/nginx/$DOM:/var/www/html \
|
|
-p 127.0.0.1:30000:80 \
|
|
-p 127.0.0.1:30050:443 \
|
|
-e 'WEBROOT=/var/www/html' \
|
|
-e 'DOMAIN=$DOM' \
|
|
richarvey/nginx-php-fpm
|