Created
March 21, 2019 15:28
-
-
Save andybeak/dfd334cbfd16f25a142ac0c7fc4aaf7c to your computer and use it in GitHub Desktop.
NomadPHP php speed comparison demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
nginx: | |
image: nginx:1.13.1 | |
container_name: nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- conf:/etc/nginx/conf.d | |
- vhost:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- certs:/etc/nginx/certs | |
labels: | |
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true" | |
dockergen: | |
image: jwilder/docker-gen:0.7.3 | |
container_name: nginx-proxy-gen | |
depends_on: | |
- nginx | |
command: -notify-sighup nginx-proxy -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf | |
volumes: | |
- conf:/etc/nginx/conf.d | |
- vhost:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- certs:/etc/nginx/certs | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro | |
letsencrypt: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
container_name: nginx-proxy-le | |
depends_on: | |
- nginx | |
- dockergen | |
environment: | |
NGINX_PROXY_CONTAINER: nginx-proxy | |
NGINX_DOCKER_GEN_CONTAINER: nginx-proxy-gen | |
volumes: | |
- conf:/etc/nginx/conf.d | |
- vhost:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- certs:/etc/nginx/certs | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
demo_nginx: | |
image: 'nginx:latest' | |
depends_on: | |
- nginx | |
- php7 | |
- php5 | |
expose: | |
- 80 | |
volumes: | |
- '../src:/code' | |
- './nginx/nginx.conf:/etc/nginx/conf.d/default.conf' | |
environment: | |
VIRTUAL_HOST: demo.mystery.co.za | |
LETSENCRYPT_HOST: demo.mystery.co.za | |
LETSENCRYPT_EMAIL: [email protected] | |
container_name: wordpress_nginx | |
php7: | |
image: php:7.2-fpm | |
volumes: | |
- '../src:/code' | |
- './php/php.ini:/usr/local/etc/php/conf.d/php_extra.ini' | |
environment: | |
PHP_INI_DIR: /usr/local/etc/php/conf.d | |
container_name: php7 | |
php5: | |
image: php:5.6-fpm | |
volumes: | |
- '../src:/code' | |
- './php/php.ini:/usr/local/etc/php/conf.d/php_extra.ini' | |
environment: | |
PHP_INI_DIR: /usr/local/etc/php/conf.d | |
container_name: php5 | |
# Do not forget to 'docker network create nginx-proxy' before launch, | |
networks: | |
default: | |
external: | |
name: nginx-proxy | |
volumes: | |
conf: | |
vhost: | |
html: | |
certs: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment