Skip to content

Commit

Permalink
added a site.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Ruf committed Oct 17, 2023
1 parent 09ca3f3 commit d0f715d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docker-compose-cypress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
app:
image: "${IMAGE_APP:-aoepeople/meals:edge}"
command: composer run-script --no-cache post-install-cmd
environment:
- APP_DEBUG=1
- APP_ENV=test
Expand All @@ -16,10 +15,8 @@ services:
- SMTP_AUTH=off
depends_on:
- db
ports:
- "8033:80"
volumes:
- ./build:/var/www/html/build
- ./src:/var/www/html/

db:
image: "mysql:5.7"
Expand All @@ -30,4 +27,12 @@ services:
- MYSQL_ROOT_PASSWORD=db
- MYSQL_DATABASE=db_test
- MYSQL_USER=db
- MYSQL_PASSWORD=db
- MYSQL_PASSWORD=db

nginx:
image: nginx:latest
ports:
- "8033:80"
volumes:
- ./src:/var/www/html/
- ./site.conf:/etc/nginx/conf.d/default.conf
18 changes: 18 additions & 0 deletions site.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
server {
listen 80;
index index.php index.html;
server_name localhost;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/html;

location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}

0 comments on commit d0f715d

Please sign in to comment.