diff --git a/Dockerrun.aws.json b/Dockerrun.aws.json new file mode 100644 index 00000000..8fe11a9d --- /dev/null +++ b/Dockerrun.aws.json @@ -0,0 +1,63 @@ +{ + "AWSEBDockerrunVersion": 2, + "volumes": [ + { + "name": "php-app", + "host": { + "sourcePath": "/var/app/current/php-app" + } + }, + { + "name": "nginx-proxy-conf", + "host": { + "sourcePath": "/var/app/current/proxy/conf.d" + } + } + ], + "containerDefinitions": [ + { + "name": "php-app", + "image": "php:fpm", + "essential": true, + "memory": 128, + "mountPoints": [ + { + "sourceVolume": "php-app", + "containerPath": "/var/www/html", + "readOnly": true + } + ] + }, + { + "name": "nginx-proxy", + "image": "nginx", + "essential": true, + "memory": 128, + "portMappings": [ + { + "hostPort": 80, + "containerPort": 80 + } + ], + "links": [ + "php-app" + ], + "mountPoints": [ + { + "sourceVolume": "php-app", + "containerPath": "/var/www/html", + "readOnly": true + }, + { + "sourceVolume": "awseb-logs-nginx-proxy", + "containerPath": "/var/log/nginx" + }, + { + "sourceVolume": "nginx-proxy-conf", + "containerPath": "/etc/nginx/conf.d", + "readOnly": true + } + ] + } + ] +} \ No newline at end of file diff --git a/php-app/index.php b/php-app/index.php new file mode 100644 index 00000000..bb2563b1 --- /dev/null +++ b/php-app/index.php @@ -0,0 +1,3 @@ +