readme update
This commit is contained in:
26
examples/basic-website-with-php/docker-compose.yml
Normal file
26
examples/basic-website-with-php/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
mywww:
|
||||
image: bunkerity/bunkerized-nginx
|
||||
restart: always
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- ./web-files:/www
|
||||
- ./letsencrypt:/etc/letsencrypt
|
||||
environment:
|
||||
- SERVER_NAME=www.website.com # replace with your domain
|
||||
- AUTO_LETS_ENCRYPT=yes
|
||||
- REDIRECT_HTTP_TO_HTTPS=yes
|
||||
- DISABLE_DEFAULT_SERVER=yes
|
||||
- REMOTE_PHP=myphp
|
||||
- REMOTE_PHP_PATH=/app
|
||||
|
||||
myphp:
|
||||
image: php:fpm
|
||||
restart: always
|
||||
volumes:
|
||||
- ./web-files:/app
|
||||
5
examples/basic-website-with-php/web-files/index.php
Normal file
5
examples/basic-website-with-php/web-files/index.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
echo "Hello World!";
|
||||
|
||||
?>
|
||||
53
examples/behind-traefik/docker-compose.yml
Normal file
53
examples/behind-traefik/docker-compose.yml
Normal file
@@ -0,0 +1,53 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
mytraefik:
|
||||
image: traefik
|
||||
restart: always
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./traefik:/etc/traefik
|
||||
|
||||
mywww1:
|
||||
image: bunkerity/bunkerized-nginx
|
||||
restart: always
|
||||
volumes:
|
||||
- ./web1:/www
|
||||
environment:
|
||||
- PROXY_REAL_IP=yes
|
||||
- REMOTE_PHP=myphp1
|
||||
- REMOTE_PHP_PATH=/app
|
||||
labels:
|
||||
- 'traefik.enable=true'
|
||||
- 'traefik.port=80'
|
||||
- 'traefik.frontend.rule=Host:web1.domain.com # replace with your domain
|
||||
|
||||
mywww2:
|
||||
image: bunkerity/bunkerized-nginx
|
||||
restart: always
|
||||
volumes:
|
||||
- ./web2:/www
|
||||
environment:
|
||||
- PROXY_REAL_IP=yes
|
||||
- REMOTE_PHP=myphp2
|
||||
- REMOTE_PHP_PATH=/app
|
||||
labels:
|
||||
- 'traefik.enable=true'
|
||||
- 'traefik.port=80'
|
||||
- 'traefik.frontend.rule=Host:web2.domain.com # replace with your domain
|
||||
|
||||
myphp1:
|
||||
image: php:fpm
|
||||
restart: always
|
||||
volumes:
|
||||
- ./web1:/app
|
||||
|
||||
myphp2:
|
||||
image: php:fpm
|
||||
restart: always
|
||||
volumes:
|
||||
- ./web2:/app
|
||||
1
examples/behind-traefik/traefik/traefik.tml
Normal file
1
examples/behind-traefik/traefik/traefik.tml
Normal file
@@ -0,0 +1 @@
|
||||
todo
|
||||
5
examples/behind-traefik/web1/index.php
Normal file
5
examples/behind-traefik/web1/index.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
echo "Web1 app.";
|
||||
|
||||
?>
|
||||
5
examples/behind-traefik/web2/index.php
Normal file
5
examples/behind-traefik/web2/index.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
echo "Web2 app.";
|
||||
|
||||
?>
|
||||
20
examples/reverse-proxy/docker-compose.yml
Normal file
20
examples/reverse-proxy/docker-compose.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
myreverse:
|
||||
image: bunkerity/bunkerized-nginx
|
||||
restart: always
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- ./http-confs:/www
|
||||
environment:
|
||||
- SERVER_NAME=pma.domain.com app.domain.com # replace with your domains
|
||||
- SERVE_FILES=no
|
||||
- DISABLE_DEFAULT_SERVER=yes
|
||||
- REDIRECT_HTTP_TO_HTTPS=yes
|
||||
- AUTO_LETS_ENCRYPT=yes
|
||||
|
||||
# TODO : pma + nodeJS ?
|
||||
Reference in New Issue
Block a user